/* ============================================================
   Auth Pages — Limore Construction Technologies
   Dark Navy Theme matching main app design
   ============================================================ */

/* ── Base ── */
.auth-body {
    min-height: 100vh;
    background: #0a1628;
    display: flex;
    align-items: stretch;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-wrapper--centered {
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a1628 0%, #0d1f3c 100%);
}

/* ── Card (form panel) ── */
.auth-card {
    width: 460px;
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    box-shadow: 4px 0 40px rgba(0,0,0,.4);
}

.auth-card--slim {
    min-height: auto;
    border-radius: 16px;
    width: 420px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

/* ── Header ── */
.auth-header {
    background: #0d1f3c;
    padding: 28px 36px 24px;
    border-bottom: 2px solid rgba(244,163,0,.2);
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,163,0,.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-logo-text { display: block; }
.auth-logo-text .logo-limo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #f4a300;
    letter-spacing: .07em;
    line-height: 1;
    display: block;
}
.auth-logo-text .logo-recon {
    font-size: .5rem;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    letter-spacing: .22em;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}
.auth-logo-img {
    max-width: 160px;
    max-height: 52px;
    object-fit: contain;
}
.limore-brand-logo,
.limore-brand-logo--auth {
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto 4px;
}
.auth-tagline {
    font-size: .68rem;
    color: rgba(255,255,255,.35);
    margin-top: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Form body ── */
.auth-body-inner {
    padding: 32px 36px;
    flex: 1;
    background: #fff;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0a1628;
    margin: 0 0 4px;
    letter-spacing: -.02em;
}
.auth-subtitle {
    font-size: .8rem;
    color: #6b7280;
    margin: 0 0 24px;
}

/* ── Form elements ── */
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-label {
    display: block;
    font-size: .747rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.auth-form .form-control {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: .867rem;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
}
.auth-form .form-control:focus {
    border-color: #f4a300;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(244,163,0,.12);
}
.auth-form .form-control::placeholder { color: #c4c9d4; }

.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #c4c9d4;
    pointer-events: none;
    transition: color .15s;
}
.input-icon-wrap:focus-within .input-icon { color: #f4a300; }

.toggle-password {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #c4c9d4; padding: 0;
    display: flex; align-items: center;
    transition: color .15s;
}
.toggle-password:hover { color: #f4a300; }

.form-hint { font-size: .68rem; color: #9ca3af; margin-top: 4px; display: block; }

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: .78rem;
}
.checkbox-label {
    display: flex; align-items: center; gap: 7px;
    color: #374151; cursor: pointer; font-size: .78rem;
}
.checkbox-label input[type="checkbox"] { accent-color: #f4a300; width: 15px; height: 15px; }

.forgot-link { color: #f4a300; font-weight: 700; font-size: .78rem; }
.forgot-link:hover { color: #ffb733; }

/* ── Buttons ── */
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: #f4a300; color: #0a1628;
    border: 2px solid #f4a300;
    padding: 10px 20px; border-radius: 8px;
    font-size: .867rem; font-weight: 800; cursor: pointer;
    letter-spacing: .01em;
    transition: background .15s, box-shadow .15s;
    text-decoration: none;
}
.btn-primary:hover {
    background: #ffb733; border-color: #ffb733; color: #0a1628;
    box-shadow: 0 4px 16px rgba(244,163,0,.35);
}
.btn-lg { padding: 12px 22px; font-size: .933rem; }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: #fff; color: #374151;
    border: 1.5px solid #e5e7eb;
    padding: 9px 18px; border-radius: 8px;
    font-size: .867rem; font-weight: 600; cursor: pointer;
    transition: border-color .15s, background .15s;
    text-decoration: none;
}
.btn-outline:hover { border-color: #f4a300; color: #0a1628; }

/* ── Alerts ── */
.alert {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 10px 14px; border-radius: 8px;
    font-size: .813rem; margin-bottom: 18px; line-height: 1.55;
    border: 1px solid transparent;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.alert-success { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.alert-warning { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.alert-dismissible { position: relative; padding-right: 36px; }
.alert-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; font-size: 1.1rem;
    cursor: pointer; opacity: .4; line-height: 1; padding: 0;
}
.alert-close:hover { opacity: .8; }

/* ── Footer ── */
.auth-footer {
    padding: 14px 36px;
    text-align: center;
    font-size: .68rem;
    color: #c4c9d4;
    border-top: 1px solid #f3f4f6;
    background: #fff;
}
.auth-footer a { color: #f4a300; }

/* ── Back link ── */
.auth-back-link { text-align: center; margin-top: 20px; font-size: .78rem; }
.auth-back-link a {
    color: #374151; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none;
}
.auth-back-link a:hover { color: #f4a300; }

/* ── Right decorative panel ── */
.auth-side {
    flex: 1;
    background: linear-gradient(145deg, #0a1628 0%, #0d1f3c 50%, #102a4c 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Decorative background circles */
.auth-side::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,163,0,.07) 0%, transparent 65%);
    pointer-events: none;
}
.auth-side::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    top: 10%; right: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,73,118,.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Floating card decorations */
.auth-side-deco {
    position: absolute;
    border-radius: 12px;
    opacity: .08;
}
.auth-side-deco-1 {
    width: 120px; height: 80px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    top: 15%; left: 8%;
    transform: rotate(-8deg);
}
.auth-side-deco-2 {
    width: 90px; height: 60px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    bottom: 20%; right: 12%;
    transform: rotate(5deg);
}
.auth-side-deco-3 {
    width: 70px; height: 50px;
    background: linear-gradient(135deg, #b71c1c, #c62828);
    top: 60%; left: 15%;
    transform: rotate(-3deg);
}

.auth-side-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
    padding: 48px;
    color: #fff;
}

.auth-side-logo { margin-bottom: 28px; }
.auth-side-logo .logo-limo  { font-size: 1.5rem; font-weight: 900; color: #f4a300; letter-spacing: .07em; display: block; }
.auth-side-logo .logo-recon { font-size: .52rem; font-weight: 600; color: rgba(255,255,255,.3); letter-spacing: .22em; text-transform: uppercase; display: block; margin-top: 4px; }

.auth-side-content h3 {
    font-size: 1.45rem; font-weight: 800;
    letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.3;
}
.auth-side-content p {
    color: rgba(255,255,255,.5);
    font-size: .867rem; line-height: 1.75;
    margin: 0 0 28px;
}
.auth-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: .833rem; color: rgba(255,255,255,.65);
}
.auth-features li svg { color: #f4a300; flex-shrink: 0; }

/* Stats strip on the side panel */
.auth-side-stats {
    display: flex; gap: 24px; margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.auth-side-stat-val { font-size: 1.2rem; font-weight: 800; color: #f4a300; }
.auth-side-stat-lbl { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); margin-top: 2px; }

/* ── Responsive ── */
@media(max-width: 960px) {
    .auth-side { display: none; }
    .auth-card { width: 100%; min-height: 100vh; box-shadow: none; }
}
@media(max-width: 480px) {
    .auth-body-inner { padding: 24px 20px; }
    .auth-header     { padding: 22px 20px 18px; }
    .auth-footer     { padding: 12px 20px; }
}
