/* ──────────────────────────────────────────────────────────────────
   Vantage — sign-in / forgot-password theme.
   Shown when the "IsVantageEnable" Configuration row is on.
   Loaded only by Areas/Identity/Pages/_AuthLayout.cshtml, after
   Bootstrap: the !important rules below deliberately override
   Bootstrap's validation classes, so load order matters.

   Structure mirrors auth-lts.css class for class, so both themes
   collapse the same way on mobile and the form panel stays identical.
   ────────────────────────────────────────────────────────────────── */

:root {
    --vt-green:      #6ABF4B;  /* logo highlight       */
    --vt-green-deep: #4A9A32;  /* logo shadow, buttons */
    --vt-green-dark: #3F8F2B;  /* the dot's fill       */
    --vt-ink:        #0B1F0C;  /* brand panel base     */
}

/* ── Base reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }

/* ── Full-viewport split ──────────────────────────────────────── */
.vt-auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
}

/* ── Brand panel (left) ───────────────────────────────────────── */
.vt-auth-brand {
    background: var(--vt-ink);
    background-image:
        radial-gradient(ellipse at 18% 22%, rgba(106, 191, 75, 0.20) 0%, transparent 56%),
        radial-gradient(ellipse at 82% 78%, rgba(106, 191, 75, 0.11) 0%, transparent 52%),
        radial-gradient(ellipse at 58% 8%,  rgba(106, 191, 75, 0.07) 0%, transparent 42%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
}

/* Decorative ring */
.vt-auth-brand::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(106, 191, 75, 0.14);
    pointer-events: none;
}

.vt-auth-brand__top {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vt-auth-brand__logo {
    width: 64px;
    height: auto;
    border-radius: 14px;
}

.vt-auth-brand__wordmark {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.vt-auth-brand__product {
    font-size: 12px;
    font-weight: 600;
    color: rgba(106, 191, 75, 0.80);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.vt-auth-brand__body {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.vt-auth-brand__tagline {
    font-size: 19px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.55;
    margin: 0;
    max-width: 360px;
    letter-spacing: -0.01em;
}

.vt-auth-brand__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vt-auth-pill {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid rgba(106, 191, 75, 0.30);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(106, 191, 75, 0.85);
    letter-spacing: 0.02em;
    background: rgba(106, 191, 75, 0.08);
}

.vt-auth-brand__footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.22);
}

/* ── Step list — forgot-password only ─────────────────────────── */
.vt-auth-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-auth-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vt-auth-step__num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(106, 191, 75, 0.16);
    border: 1px solid rgba(106, 191, 75, 0.38);
    color: rgba(106, 191, 75, 0.92);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-auth-step__text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

/* ── Form panel (right) ───────────────────────────────────────── */
.vt-auth-form-panel {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.vt-auth-form-wrap {
    width: 100%;
    max-width: 368px;
}

/* Back link — forgot-password only */
.vt-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.15s ease;
}

.vt-auth-back-link:hover { color: #0f172a; }

.vt-auth-form-header {
    margin-bottom: 36px;
}

.vt-auth-form-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 8px 0 !important;
    border: none !important;
}

.vt-auth-form-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Form structure */
.vt-auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.vt-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vt-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vt-auth-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    display: block;
}

.vt-auth-input {
    height: 44px;
    width: 100%;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    box-shadow: none !important;
}

.vt-auth-input::placeholder { color: #94a3b8; }

.vt-auth-input:focus {
    border-color: var(--vt-green) !important;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(106, 191, 75, 0.18) !important;
}

/* Override Bootstrap invalid states */
.vt-auth-input.input-validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.vt-auth-forgot-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--vt-green-deep);
    text-decoration: none;
    transition: color 0.15s ease;
    line-height: 1;
}

.vt-auth-forgot-link:hover {
    color: var(--vt-green-dark);
    text-decoration: underline;
}

/* Submit button */
.vt-auth-btn {
    display: block;
    width: 100%;
    height: 46px;
    background: var(--vt-green-deep);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10), 0 4px 18px rgba(74, 154, 50, 0.30);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    margin-top: 2px;
    white-space: nowrap;
}

.vt-auth-btn:hover {
    background: var(--vt-green-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 6px 26px rgba(74, 154, 50, 0.40);
}

.vt-auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Validation messages */
.vt-auth-field-error {
    font-size: 12px;
    color: #dc2626;
    display: block;
    min-height: 0;
}

/* Validation summary (model-level errors) */
.vt-auth-error-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #b91c1c;
}

.vt-auth-error-summary:empty { display: none; }

/* ── Mobile: stack vertically ─────────────────────────────────── */
@media (max-width: 768px) {
    .vt-auth-split {
        grid-template-columns: 1fr;
    }

    .vt-auth-brand {
        padding: 30px 24px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        min-height: auto;
    }

    .vt-auth-brand__body,
    .vt-auth-brand__footer { display: none; }

    .vt-auth-brand__top {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .vt-auth-brand__logo { width: 40px; border-radius: 10px; }

    .vt-auth-brand__wordmark {
        font-size: 20px;
        margin: 0;
    }

    .vt-auth-brand__product { display: none; }

    .vt-auth-form-panel {
        padding: 32px 24px 48px;
        align-items: flex-start;
    }

    .vt-auth-form-wrap { max-width: 100%; }
}
