/* Premium auth — Shree Ram Cargo */
:root {
    --auth-green: #0f9d58;
    --auth-green-dark: #0b7d46;
    --auth-green-light: #e8f7ee;
    --auth-green-hover: #0d8a4d;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-input-bg: #f8fafc;
    --auth-radius: 12px;
    --auth-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --auth-font: "Sora", "Segoe UI", sans-serif;
    --auth-display: "Source Serif 4", Georgia, serif;
}

body.auth-body {
    margin: 0;
    font-family: var(--auth-font);
    background: #0a3d28;
    -webkit-font-smoothing: antialiased;
    color: var(--auth-text);
}

.auth-split {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-panel-left {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255,255,255,.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(0,0,0,.25), transparent 50%),
        linear-gradient(155deg, #12a35c 0%, #0a7a44 48%, #055c34 100%);
    color: #fff;
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: authRiseIn .55s ease-out both;
}

.auth-panel-left::before,
.auth-panel-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}
.auth-panel-left::before { width: 440px; height: 440px; top: -140px; right: -100px; }
.auth-panel-left::after  { width: 300px; height: 300px; bottom: -80px; left: -60px; }

.auth-panel-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }

.auth-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
}
.auth-logo-badge {
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
}

.auth-brand-mobile {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.auth-brand-mobile .auth-logo-badge {
    background: var(--auth-green-light);
    border-color: #bbf7d0;
    color: var(--auth-green-dark);
}
.auth-brand-mobile strong {
    font-size: 1rem;
    color: var(--auth-text);
    letter-spacing: -.02em;
}

.auth-company-contact {
    margin: 28px 0 0; padding: 14px 16px; border-radius: 12px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
    font-size: .82rem; line-height: 1.5;
}
.auth-contact-line {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px;
}
.auth-contact-line:last-child { margin-bottom: 0; }
.auth-contact-line a { color: #fff; text-decoration: none; opacity: .95; }
.auth-contact-line a:hover { text-decoration: underline; }
.auth-contact-icon {
    flex-shrink: 0;
    opacity: .85;
    margin-top: 1px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    min-width: 2.4rem;
}

.auth-trust-badge {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 36px; padding: 7px 16px; border-radius: 999px;
    background: rgba(255,255,255,.14); font-size: .68rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; width: fit-content;
    border: 1px solid rgba(255,255,255,.12);
}
.auth-trust-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #bbf7d0; }

.auth-panel-left h2 {
    font-family: var(--auth-display);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700; line-height: 1.18; margin: 22px 0 14px;
    max-width: 420px; letter-spacing: -.02em;
}
.auth-panel-left .auth-lead {
    font-size: .94rem; line-height: 1.68; opacity: .9; max-width: 420px; margin: 0 0 30px;
}

.auth-features { list-style: none; padding: 0; margin: 0 0 auto; }
.auth-features li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 15px; font-size: .87rem; line-height: 1.5;
}
.auth-features .feat-icon {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
}
.auth-features .feat-icon .auth-svg-icon { stroke: #fff; opacity: .95; }

.auth-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px;
}
.auth-stat {
    background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 14px 12px; backdrop-filter: blur(6px);
    transition: transform .2s ease, background .2s ease;
}
.auth-stat:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); }
.auth-stat strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.auth-stat span { font-size: .62rem; opacity: .88; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.auth-panel-right {
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(15,157,88,.06), transparent 50%),
        #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 52px 64px;
    animation: authFadeIn .55s ease-out .08s both;
}

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

.auth-form-wrap h1 {
    font-family: var(--auth-display);
    font-size: 1.85rem; font-weight: 700; color: var(--auth-text);
    margin: 0 0 8px; letter-spacing: -.02em;
}
.auth-form-wrap .auth-sub { color: var(--auth-muted); font-size: .9rem; margin: 0 0 26px; line-height: 1.5; }

.auth-field { margin-bottom: 20px; }
.auth-field label {
    display: block; font-size: .8rem; font-weight: 600; color: var(--auth-text); margin-bottom: 7px;
}

.auth-input-wrap { position: relative; }
.auth-input-wrap .field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none; display: flex; align-items: center;
}
.auth-input-wrap input {
    width: 100%; height: 48px; padding: 0 56px 0 42px;
    border: 1px solid var(--auth-border); border-radius: var(--auth-radius);
    background: var(--auth-input-bg); font-size: .9rem; color: var(--auth-text);
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.auth-input-wrap input::placeholder { color: #94a3b8; }
.auth-input-wrap input:focus {
    outline: none; border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(15,157,88,.14); background: #fff;
}
.auth-input-wrap .toggle-pwd {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border: none; background: none; color: var(--auth-green); cursor: pointer;
    padding: 6px 8px; font-size: .75rem; font-weight: 700; font-family: inherit;
}
.auth-input-wrap .toggle-pwd:hover { color: var(--auth-green-dark); }

.btn-auth-primary {
    width: 100%; height: 48px; border: none; border-radius: var(--auth-radius);
    background: var(--auth-green); color: #fff; font-size: .94rem; font-weight: 700;
    cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(15,157,88,.32); margin-top: 4px;
    font-family: inherit;
}
.btn-auth-primary:hover { background: var(--auth-green-hover); box-shadow: 0 6px 20px rgba(15,157,88,.38); }
.btn-auth-primary:active { transform: scale(.99); }

.auth-footer-link { text-align: center; margin-top: 22px; font-size: .84rem; color: var(--auth-muted); line-height: 1.5; }
.auth-copyright { text-align: center; margin-top: 28px; font-size: .7rem; color: #94a3b8; }

.alert-auth { padding: 11px 14px; border-radius: 10px; font-size: .82rem; margin-bottom: 18px; line-height: 1.45; }
.alert-auth-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-auth-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

@keyframes authRiseIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 960px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-panel-left { padding: 32px 24px 28px; min-height: auto; }
    .auth-panel-right { padding: 36px 24px 48px; }
    .auth-stats { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
    .auth-panel-left h2 { font-size: 1.55rem; }
    .auth-brand-mobile { display: flex; }
    .auth-logo { font-size: 1.1rem; }
    .auth-features { display: none; }
    .auth-company-contact { display: none; }
    .auth-trust-badge { margin-top: 20px; }
}
@media (max-width: 540px) {
    .auth-panel-right { padding: 28px 18px 40px; }
    .auth-stats { grid-template-columns: 1fr; gap: 8px; }
    .auth-form-wrap h1 { font-size: 1.55rem; }
}
