/* ════════════════════════════════════════════════════════════
   VIPLA — Login / Account area theme
   Self-contained override of the AdminLTE account-layout bundle.
   Loaded only on the Account pages (via Account/_Styles.cshtml).
   ════════════════════════════════════════════════════════════ */

:root {
    --vp-black: #0A0A0B;
    --vp-dark: #18181B;
    --vp-mid: #52525C;
    --vp-quiet: #94949F;
    --vp-faint: #CCCCD4;
    --vp-pale: #E4E4E9;
    --vp-light: #F2F2F5;
    --vp-surface: #F9F9FB;
    --vp-white: #FFFFFF;
    --vp-vi: #4F21A8;
    --vp-vi-up: #5C28BF;
    --vp-vi-deep: #3D1885;
    --vp-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.vp-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--vp-sans) !important;
    color: var(--vp-black);
    background: var(--vp-surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ── Two-pane shell ── */
.vp-auth {
    display: flex;
    min-height: 100vh;
}

/* ── Left: brand panel ── */
.vp-auth-brand {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background:
        radial-gradient(120% 120% at 15% 10%, rgba(92,40,191,0.55) 0%, rgba(61,24,133,0) 55%),
        linear-gradient(160deg, #1a0d3a 0%, var(--vp-black) 70%);
    overflow: hidden;
}
.vp-auth-brand::after {
    /* subtle dotted texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.6;
    pointer-events: none;
}
.vp-auth-brand-inner { position: relative; z-index: 1; max-width: 460px; margin: auto 0; }

.vp-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 40px; }
.vp-logo-tile {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vp-vi-deep);
    border-radius: 12px;
    font-weight: 800; font-size: 17px; letter-spacing: 1px; color: #fff;
    box-shadow: 0 8px 24px rgba(79,33,168,0.45);
}
.vp-logo-word { font-weight: 600; font-size: 22px; letter-spacing: 7px; color: #fff; }

.vp-auth-headline {
    font-size: 34px; font-weight: 700; line-height: 1.18; letter-spacing: -0.5px;
    margin: 0 0 16px;
}
.vp-auth-headline .vp-accent { color: #b69bf0; }
.vp-auth-sub { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.62); margin: 0; }

.vp-auth-points { list-style: none; padding: 0; margin: 30px 0 0; }
.vp-auth-points li {
    display: flex; align-items: center; gap: 11px;
    font-size: 13.5px; color: rgba(255,255,255,0.78); padding: 7px 0;
}
.vp-auth-points i { color: #b69bf0; font-size: 13px; width: 16px; text-align: center; }

.vp-auth-brand-foot {
    position: relative; z-index: 1;
    font-size: 11.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.2px;
}

/* ── Right: form panel ── */
.vp-auth-form {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--vp-surface);
}
.vp-auth-card {
    width: 100%;
    max-width: 392px;
    background: var(--vp-white);
    border: 1px solid var(--vp-pale);
    border-radius: 16px;
    padding: 34px 34px 28px;
    box-shadow: 0 18px 50px -28px rgba(10,10,11,0.35);
}
.vp-auth-title { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; color: var(--vp-black); margin: 0 0 4px; }
.vp-auth-hint { font-size: 13px; color: var(--vp-quiet); margin: 0 0 24px; }

/* Tenant change + languages slots */
.vp-auth-tenant { margin-bottom: 18px; font-size: 12px; color: var(--vp-mid); }
.vp-auth-langs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--vp-pale); text-align: center; }
.vp-auth-langs a { color: var(--vp-mid); font-size: 12px; text-decoration: none; }
.vp-auth-langs a:hover { color: var(--vp-vi); }

/* ── Form controls (scoped, override AdminLTE/Bootstrap) ── */
.vp-auth .form-control {
    height: 46px;
    border: 1px solid var(--vp-pale) !important;
    border-radius: 10px !important;
    font-size: 14px;
    color: var(--vp-black);
    background: var(--vp-white);
    box-shadow: none !important;
    padding-left: 14px;
}
.vp-auth .form-control::placeholder { color: var(--vp-quiet); }
.vp-auth .form-control:focus {
    border-color: var(--vp-vi) !important;
    box-shadow: 0 0 0 3px var(--vp-vi-line, rgba(79,33,168,0.13)) !important;
}

/* Icon-in-field via input-group */
.vp-auth .input-group { margin-bottom: 16px; position: relative; }
.vp-auth .input-group .form-control { border-radius: 10px !important; }
.vp-auth .input-group-append { position: absolute; right: 1px; top: 1px; bottom: 1px; z-index: 4; }
.vp-auth .input-group-text {
    height: 44px; width: 44px;
    background: transparent !important;
    border: none !important;
    color: var(--vp-quiet);
    display: flex; align-items: center; justify-content: center;
}

/* Field label */
.vp-auth .vp-field-label {
    display: block; font-size: 12px; font-weight: 600; color: var(--vp-mid);
    margin: 0 0 6px; letter-spacing: 0.01em;
}

/* Remember + submit row */
.vp-auth .icheck-primary { font-size: 13px; color: var(--vp-mid); }
.vp-auth .icheck-primary label { font-weight: 500; }

.vp-auth .btn-primary,
.vp-auth #LoginButton {
    height: 46px;
    background: var(--vp-vi) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: #fff !important;
    transition: background 0.12s ease;
    box-shadow: 0 8px 22px -10px rgba(79,33,168,0.7);
}
.vp-auth .btn-primary:hover,
.vp-auth #LoginButton:hover { background: var(--vp-vi-up) !important; }
.vp-auth .btn-primary:active,
.vp-auth #LoginButton:active { background: var(--vp-vi-deep) !important; }

.vp-auth-submit { margin-top: 22px; }
.vp-auth .btn-block { width: 100%; display: block; }

/* Register link */
.vp-auth-register { margin-top: 18px; text-align: center; font-size: 13px; color: var(--vp-quiet); }
.vp-auth-register a { color: var(--vp-vi); font-weight: 600; text-decoration: none; }
.vp-auth-register a:hover { text-decoration: underline; }

/* Validation messages */
.vp-auth .field-validation-error,
.vp-auth .validation-summary-errors { color: var(--vp-er, #DC2626); font-size: 12px; }

/* ── Responsive: stack to a single column, hide brand panel ── */
@media (max-width: 880px) {
    .vp-auth-brand { display: none; }
    .vp-auth-form { flex: 1 1 100%; }
}
