
/* ————————————————— Mandovi Motors DMS — Login ————————————————— */
:root {
    --brand: #1a237e;
    --brand-deep: #0f1442;
    --accent: #e30613; /* Suzuki red */
    --bg: #0b0f2a;
    --fg: #f5f7ff;
    --muted: #a9b0c9;
    --border: rgba(255,255,255,0.12);
    --input-bg: rgba(255,255,255,0.05);
    --radius: 0.9rem;
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --shadow-card: 0 40px 120px -40px rgba(0,0,0,0.55);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #1e2670 0%, #131a55 50%, #0b0f2a 100%);
    color: var(--fg);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 0;
}

a {
    color: inherit;
}

/* ————— Layout ————— */
.stage {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ————— Backdrop ————— */
.backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    animation: kenburns 22s ease-in-out infinite;
}

.backdrop-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(11,15,42,0.75) 60%, rgba(8,11,32,0.95) 100%);
}

.backdrop-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(11,15,42,0.85), transparent, rgba(30,38,112,0.35));
}

.backdrop-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 12s linear infinite;
}

.speed-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    left: 0;
    height: 1px;
    animation: speed-line 4s linear infinite;
}

.line-a {
    top: 22%;
    width: 160px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
}

.line-b {
    top: 64%;
    width: 224px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    animation-delay: 1.6s;
}

.line-c {
    top: 80%;
    width: 128px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    animation-delay: 3s;
}

/* ————— Glass ————— */
.glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ————— Topbar ————— */
.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    height: 44px;
    background: linear-gradient(53deg, rgb(255 255 255 / 77%), rgb(255 255 255 / 28%));
  /*  border: 1px solid rgba(255, 255, 255, 0.12);*/
    border-radius: 999px;
    backdrop-filter: blur(24px);
}

    .brand-pill img {
        height: 24px;
        width: auto;
        object-fit: contain;
    }

.security-tag {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

    .security-tag svg {
        color: var(--accent);
    }

/* ————— Content ————— */
.content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 64px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.narrative {
    max-width: 560px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

    .chip svg {
        color: var(--accent);
    }

.headline {
    margin-top: 24px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 60%, #f87171 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subhead {
    margin: 20px 0 0;
    max-width: 440px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Stats */
.stats {
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 440px;
}

.stat {
    padding: 12px 16px;
    border-radius: 12px;
}

    .stat dt {
        margin: 0;
        font-size: 11px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.5);
    }

    .stat dd {
        margin: 4px 0 0;
        font-family: var(--font-display);
        font-size: 20px;
        color: white;
    }

/* ————— Auth Card ————— */
.auth-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.sheen {
    position: absolute;
    top: -50%;
    left: 0;
    width: 160px;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-120%) skewX(-15deg);
    animation: sheen 6s ease-in-out infinite;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.glow-accent {
    top: -64px;
    right: -64px;
    width: 160px;
    height: 160px;
    background: rgba(227,6,19,0.25);
}

.glow-brand {
    bottom: -96px;
    left: -64px;
    width: 224px;
    height: 224px;
    background: rgba(30,38,112,0.55);
}

.card-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.head-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent);
    color: white;
}

.pulse-ring {
    animation: pulse-ring 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
}

.eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.card-head h2 {
    font-size: 24px;
    color: white;
    margin-top: 2px;
}

/* Form */
form {
    position: relative;
}

.field {
    margin-bottom: 16px;
}

    .field label {
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.6);
    }

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-subtle {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

    .link-subtle:hover {
        color: var(--accent);
    }

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap:focus-within .input-icon {
    color: var(--accent);
}

.input-wrap input {
    height: 48px;
    width: 100%;
    padding: 0 16px 0 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    font-family: inherit;
}

    .input-wrap input::placeholder {
        color: rgba(255,255,255,0.3);
    }

    .input-wrap input:focus {
        border-color: transparent;
        box-shadow: 0 0 0 2px var(--accent);
    }

.eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

    .eye-btn:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

/* Row */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

    .toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .toggle .track {
        position: relative;
        display: inline-block;
        width: 36px;
        height: 20px;
        background: rgba(255,255,255,0.15);
        border-radius: 999px;
        transition: background 0.2s;
    }

    .toggle .thumb {
        position: absolute;
        left: 2px;
        top: 2px;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        transition: transform 0.2s;
    }

    .toggle input:checked + .track {
        background: var(--accent);
    }

        .toggle input:checked + .track .thumb {
            transform: translateX(16px);
        }

.muted-xs {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    height: 48px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 20px 60px -20px rgba(227,6,19,0.7);
    transition: transform 0.2s;
}

    .btn-primary:hover {
        transform: translateY(-1px);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: default;
        transform: none;
    }

.btn-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s;
    pointer-events: none;
}

.btn-primary:hover .btn-sheen {
    transform: translateX(100%);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.divider {
    position: relative;
    padding: 12px 0;
    text-align: center;
}

    .divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: rgba(255,255,255,0.1);
    }

    .divider span {
        position: relative;
        padding: 0 12px;
        font-size: 11px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
        background: transparent;
    }

.btn-ghost {
    height: 44px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,0.1);
    }

.foot-note {
    margin: 24px 0 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

    .foot-note a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
    }

        .foot-note a:hover {
            text-decoration: underline;
            text-underline-offset: 4px;
        }

/* ————— Footer ————— */
.footer {
        position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    flex-direction: column;
    bottom: 30px;
}

    .footer a {
        text-decoration: none;
    }

        .footer a:hover {
            color: rgba(255,255,255,0.7);
        }

.foot-links {
    display: flex;
    gap: 16px;
}

/* ————— Responsive ————— */
@media (min-width: 768px) {
    .topbar {
        padding: 20px 40px;
    }

    .security-tag {
        display: flex;
    }

    .content {
        padding: 24px 40px 64px;
    }

    .footer {
        flex-direction: row;
        padding: 0 40px 24px;
    }
}

@media (min-width: 1024px) {
    .content {
        grid-template-columns: 1.4fr 1fr;
        gap: 180px;
    }

    .auth-card {
        padding: 40px;
    }
}

/* ————— Animations ————— */
.fade-up {
    animation: fade-up 0.7s ease-out both;
}

    .fade-up.delay {
        animation-delay: 120ms;
    }

@keyframes kenburns {
    0% {
        transform: scale(1.08) translate3d(0,0,0);
    }

    50% {
        transform: scale(1.18) translate3d(-1.5%, -1%, 0);
    }

    100% {
        transform: scale(1.08) translate3d(0,0,0);
    }
}

@keyframes sheen {
    0% {
        transform: translateX(-120%) skewX(-15deg);
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(220%) skewX(-15deg);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(227,6,19,0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(227,6,19,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227,6,19,0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes grid-drift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

@keyframes speed-line {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateX(120vw);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


