/* ================================================================
   AutoShkodra Files — auth pages stylesheet
   files.autoshkodra.com
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --dark-bg        : #0e1117;
    --dark-bg-2      : #151a24;
    --dark-accent    : #e63946;
    --dark-text-dim  : rgba(255,255,255,.55);
    --dark-text-dimmer: rgba(255,255,255,.3);

    --light-bg       : #ffffff;
    --light-bg-2     : #f7f8fa;
    --text-main      : #111827;
    --text-muted     : #6b7280;
    --border         : #e5e7eb;
    --primary        : #e63946;
    --primary-h      : #c9303c;
    --input-bg       : #f7f8fa;
    --focus-ring     : rgba(230,57,70,.15);
    --shadow-sm      : 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md      : 0 4px 16px rgba(0,0,0,.08);
    --radius-sm      : 8px;
    --radius-md      : 12px;
}

html, body {
    margin: 0; padding: 0; height: 100%;
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--text-main);
    background: var(--light-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ================================================================
   Two-panel wrapper
   ================================================================ */
.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ================================================================
   Left — dark brand panel
   ================================================================ */
.auth-left {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 10% 15%, #1b2438 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 90% 85%, rgba(230,57,70,.15) 0%, transparent 60%),
        var(--dark-bg);
    color: #fff;
    padding: 40px 52px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* subtle grid decoration */
.auth-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.back-home {
    position: relative;
    z-index: 1;
    font-size: 13.5px;
    color: var(--dark-text-dim);
    transition: color .18s;
    align-self: flex-start;
}
.back-home:hover { color: #fff; }

.brand-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 72%;
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
}

.brand-tag {
    font-size: 14px;
    color: var(--dark-text-dim);
    letter-spacing: .25px;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

.brand-footer {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: var(--dark-text-dimmer);
}

/* ================================================================
   Right — form panel
   ================================================================ */
.auth-right {
    position: relative;
    background: var(--light-bg);
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-wrap {
    width: 100%;
    max-width: 400px;
}

/* Mobile-only logo (hidden on desktop) */
.form-logo-mobile {
    display: none;
    max-width: 170px;
    margin: 0 auto 28px;
}

.form-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.4px;
    color: var(--text-main);
}

.intro {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 28px;
}

/* ================================================================
   Flash messages
   ================================================================ */
.flash {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 20px;
}
.flash-error { background: #fde8ea; color: #921d27; border: 1px solid #f5bec3; }
.flash-ok    { background: #e7f6ed; color: #1b5e38; border: 1px solid #b7e4c7; }

/* ================================================================
   Form fields
   ================================================================ */
.field {
    display: block;
    margin-bottom: 18px;
}
.field > span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: inherit;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text-main);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* password field wrapper */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }

.pw-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}
.pw-eye:hover { color: var(--text-main); background: rgba(0,0,0,.05); }

/* ================================================================
   Row: remember me + forgot password
   ================================================================ */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 22px;
    font-size: 13px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.remember input[type="checkbox"] { accent-color: var(--primary); }
.link-quiet {
    color: var(--text-muted);
    transition: color .15s;
    font-size: 13px;
}
.link-quiet:hover { color: var(--primary); }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .06s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230,57,70,.3);
}
.btn-primary:hover {
    background: var(--primary-h);
    box-shadow: 0 3px 12px rgba(230,57,70,.4);
}

.btn-google {
    background: var(--light-bg);
    color: var(--text-main);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    margin-top: 6px;
}
.btn-google:hover {
    background: var(--light-bg-2);
    border-color: #d1d5db;
}

/* ================================================================
   Divider
   ================================================================ */
.divider {
    position: relative;
    text-align: center;
    margin: 22px 0 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 44%;
    height: 1px;
    background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }
.divider span { background: #fff; padding: 0 10px; position: relative; }

/* ================================================================
   Sign-up / create account row
   ================================================================ */
.signup-row {
    text-align: center;
    margin: 24px 0 0;
    font-size: 13.5px;
    color: var(--text-muted);
}
.signup-row a {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}
.signup-row a:hover { text-decoration: underline; }

/* ================================================================
   Language switcher
   ================================================================ */
.lang-switch {
    position: absolute;
    top: 26px;
    right: 28px;
    z-index: 20;
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
    white-space: nowrap;
}
.lang-current:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-md);
}
.lang-current img {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,.08);
}
.chevron { flex-shrink: 0; transition: transform .18s; }
.lang-current[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.lang-menu {
    display: none;
    list-style: none;
    margin: 6px 0 0;
    padding: 5px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    position: absolute;
    right: 0;
    min-width: 130px;
}
.lang-menu.open { display: block; }

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-main);
    transition: background .12s;
}
.lang-menu li a:hover { background: var(--light-bg-2); }
.lang-menu li a[aria-selected="true"] { font-weight: 600; color: var(--primary); }
.lang-menu img {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,.08);
}

/* ================================================================
   Dashboard styles (reused here to avoid extra file)
   ================================================================ */
.dash-wrap {
    min-height: 100vh;
    background: var(--light-bg-2);
    padding: 40px 24px;
}
.dash-inner {
    max-width: 960px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 36px 40px;
}
.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.dash-top img { height: 38px; }
.btn-logout {
    padding: 8px 18px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .15s;
    display: inline-block;
}
.btn-logout:hover { background: var(--primary-h); }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 860px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-left  { display: none; }
    .auth-right { padding: 80px 28px 40px; }
    .form-logo-mobile { display: block; }
    .lang-switch { top: 18px; right: 18px; }
}

@media (max-width: 480px) {
    .auth-right { padding: 72px 18px 32px; }
    .form-wrap h1 { font-size: 24px; }
    .dash-inner { padding: 24px 20px; }
}
