﻿/* ─── CSS Variables ──────────────────────────────────────── */
.d-none {
    display: none;
}

:root {
    --brand: #0019b8;
    --brand-deep: #00128a;
    --brand-light: #2a3fd4;
    --brand-glow: rgba(0, 25, 184, 0.35);
    --brand-tint: rgba(0, 25, 184, 0.08);
    --white: #ffffff;
    --glass-bg: rgba(255,255,255,0.13);
    --glass-border: rgba(255,255,255,0.28);
    --glass-shadow: rgba(0,25,184,0.18);
    --input-bg: rgba(255,255,255,0.18);
    --input-border: rgba(255,255,255,0.35);
    --text-main: #ffffff;
    --text-muted: rgba(255,255,255,0.65);
    --text-subtle: rgba(255,255,255,0.42);
    --error: #ff4d6d;
    --success: #00e096;
    --overlay: rgba(0,10,80,0.55);
    --card-radius: 24px;
    --font-display: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

[data-theme="dark"] {
    --glass-bg: rgba(0,10,60,0.52);
    --glass-border: rgba(0,25,184,0.38);
    --input-bg: rgba(0,10,60,0.38);
    --input-border: rgba(42,63,212,0.5);
    --text-main: #ffffff;
    --text-muted: rgba(180,195,255,0.75);
    --text-subtle: rgba(130,150,255,0.5);
    --overlay: rgba(0,5,40,0.72);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
    background: #000a3a;
}

/* ─── Full-Screen Layout ─────────────────────────────────── */
.page-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ─── LEFT PANEL ─────────────────────────────────────────── */
.left-panel {
    flex: 1.15;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}

.left-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0019b8 0%, #0a2be0 28%, #0d1a8a 60%, #000a3a 100%);
    z-index: 0;
}
/* Animated mesh blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    animation: drift 12s ease-in-out infinite alternate;
    z-index: 1;
}

.blob-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, #3a5bff 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    width: 380px;
    height: 380px;
    top: 30%;
    right: -60px;
    background: radial-gradient(circle, #00cfff 0%, transparent 70%);
    animation-delay: -4s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    bottom: 80px;
    left: 20%;
    background: radial-gradient(circle, #001aff 0%, transparent 70%);
    animation-delay: -8s;
}

@@keyframes drift {
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(30px, 20px) scale(1.08);
    }
}

/* Car silhouette grid pattern */
.grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Car image placeholder — replace src with your actual asset */
.car-visual {
    position: absolute;
    bottom: 118px;
    left: 200px;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.car-svg-wrap {
    width: 90%;
    max-width: 640px;
    opacity: 0.92;
    filter: drop-shadow(0 -12px 48px rgba(0,40,255,0.55));
    animation: carFloat 6s ease-in-out infinite alternate;
}

@@keyframes carFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-14px);
    }
}

/* Tagline block */
.left-content {
    position: relative;
    z-index: 10;
}

.left-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 11.5px;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
}

    .left-badge span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #00e0ff;
        display: block;
        animation: pulse 2s ease-in-out infinite;
    }

@@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(.7)
    }
}

.left-headline {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.2vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}

    .left-headline em {
        font-style: normal;
        color: #6aadff;
    }

.left-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 380px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.left-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.stat-lbl {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ─── RIGHT PANEL ─────────────────────────────────────────── */
.right-panel {
    width: 50%;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
    background: var(--overlay);
    backdrop-filter: blur(32px);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

    .right-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,25,184,0.12) 0%, rgba(0,0,0,0.05) 100%);
        pointer-events: none;
    }

/* Card */
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(160%);
    border-radius: var(--card-radius);
    padding: 40px 36px;
    box-shadow: 0 8px 48px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
    animation: cardIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(36px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    border-radius: 50%;
}

/* Brand / Logo */
.brand-block {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0019b8, #2a3fd4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--brand-glow);
    flex-shrink: 0;
}

    .logo-mark svg {
        width: 26px;
        height: 26px;
    }

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 22px;
    /*font-weight: 800;*/
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
    border: solid 2px #688196;
    padding: 8px 12px;
    border-radius: 10px;
    width: max-content;
    background: #17161617;
    font-weight: 300;
}

.brand-tagline {
    font-size: 10.5px;
    color: var(--text-subtle);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Heading */
.card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* Tenant Selector */
.tenant-selector {
    margin-bottom: 20px;
}

.field-label {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
    display: block;
}

.select-wrap {
    position: relative;
}

    .select-wrap select,
    .input-wrap input {
        width: 100%;
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 12px;
        color: var(--text-main);
        font-family: var(--font-body);
        font-size: 14px;
        padding: 12px 16px;
        outline: none;
        transition: border-color .2s, box-shadow .2s, background .2s;
        -webkit-appearance: none;
    }

    .select-wrap::after {
        content: '▾';
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        pointer-events: none;
        font-size: 13px;
    }

    .select-wrap select option {
        background: #001066;
        color: #fff;
    }

    .select-wrap select:focus,
    .input-wrap input:focus {
        border-color: rgba(100,140,255,0.7);
        box-shadow: 0 0 0 3px rgba(0,25,184,0.22);
        background: rgba(255,255,255,0.2);
    }

/* Input fields */
.field-group {
    margin-bottom: 16px;
}

.input-wrap {
    position: relative;
}

    .input-wrap .field-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        pointer-events: none;
        width: 16px;
        height: 16px;
    }

    .input-wrap input {
        padding-left: 42px;
    }

    .input-wrap.has-toggle input {
        padding-right: 44px;
    }

.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color .15s;
}

    .toggle-pw:hover {
        color: var(--text-main);
    }

    .toggle-pw svg {
        width: 18px;
        height: 18px;
    }

/* Divider row: remember me + forgot */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

    .checkbox-label input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border: 1.5px solid var(--input-border);
        border-radius: 5px;
        background: var(--input-bg);
        cursor: pointer;
        position: relative;
        transition: background .15s, border-color .15s;
        flex-shrink: 0;
    }

        .checkbox-label input[type="checkbox"]:checked {
            background: var(--brand);
            border-color: var(--brand);
        }

            .checkbox-label input[type="checkbox"]:checked::after {
                content: '';
                position: absolute;
                top: 2px;
                left: 5px;
                width: 4px;
                height: 7px;
                border: 2px solid #fff;
                border-top: none;
                border-left: none;
                transform: rotate(45deg);
            }

.forgot-link {
    font-size: 12.5px;
    color: #7aacff;
    text-decoration: none;
    transition: color .15s;
}

    .forgot-link:hover {
        color: #fff;
    }

/* Submit button */
.btn-primary {
    width: 100%;
    padding: 13px;
    background: #2a3fd4; /* linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 60%, var(--brand-deep) 100%); */
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 24px var(--brand-glow);
    margin-bottom: 20px;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        /*  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 50%);  */
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0,25,184,0.55);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary .btn-arrow {
        display: inline-block;
        margin-left: 6px;
        transition: transform .2s;
    }

    .btn-primary:hover .btn-arrow {
        transform: translateX(4px);
    }

/* Divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .or-divider::before, .or-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--input-border), transparent);
    }

    .or-divider span {
        font-size: 11.5px;
        color: var(--text-subtle);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        white-space: nowrap;
    }

/* Social buttons */
.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 11px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, transform .15s;
    text-decoration: none;
}

    .btn-social:hover {
        background: rgba(255,255,255,0.22);
        border-color: rgba(255,255,255,0.45);
        color: var(--text-main);
        transform: translateY(-2px);
    }

    .btn-social svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

/* Footer links */
.card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-link-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

    .footer-link-row a {
        font-size: 12px;
        color: var(--text-subtle);
        text-decoration: none;
        transition: color .15s;
    }

        .footer-link-row a:hover {
            color: var(--text-muted);
        }

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-subtle);
}

/* Tenant locked (resolved from URL) */
.tenant-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 400;
    color: #6aadff;
    letter-spacing: 0.04em;
    text-transform: none;
    margin-left: 6px;
    vertical-align: middle;
}

.tenant-locked-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    border: 1px solid rgba(106,173,255,0.4);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

    .tenant-locked-display svg {
        color: #6aadff;
        flex-shrink: 0;
    }

.tenant-switch-link {
    margin-left: auto;
    font-size: 11.5px;
    color: #7aacff;
    text-decoration: none;
    transition: color .15s;
}

    .tenant-switch-link:hover {
        color: #fff;
    }

/* Version badge */
.version-info {
    font-size: 10.5px;
    color: var(--text-subtle);
    letter-spacing: 0.08em;
    text-align: center;
    margin-top: 6px;
}

/* Dark mode toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s;
    color: var(--text-main);
}

    .theme-toggle:hover {
        background: rgba(255,255,255,0.2);
        transform: scale(1.05);
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
        transition: opacity .2s;
    }

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block;
}

/* Validation message */
.validation-summary {
    background: rgba(255,77,109,0.18);
    border: 1px solid rgba(255,77,109,0.35);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #ffa0b3;
    display: none;
}

    .validation-summary.show {
        display: block;
    }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        min-width: 0;
    }

    body {
        overflow: auto;
    }

    html, body {
        height: auto;
    }

    .page-wrapper {
        height: auto;
        min-height: 100vh;
    }
}

.brand-block-left {
    display: flex;
    position: absolute;
    z-index: 9999;
    top: 50px;
}

@media (max-width: 480px) {
    .brand-block {
        display: flex !important;
    }

    .brand-block-left {
        display: none;
    }

    .right-panel {
        padding: 24px 16px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 18px;
    }
}

.brand-left-tagline {
    font-size: 10.5px;
    color: #a2c3ff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 7px;
}




.garagemin-captcha {
    margin: 18px 0;
    display: flex;
    justify-content: flex-start;
}

    .garagemin-captcha .g-recaptcha {
        max-width: 100%;
    }

@media (max-width: 480px) {
    .garagemin-captcha {
        transform-origin: left top;
    }
}