/*
 * Login / password pages - split screen portals.
 * Admin (office) = forest green, Agent (field) = saffron. Previous design: backup/website-2026-10-31/pvf-auth-old.css
 */

body.pvf-auth {
    --accent: #2e7d32;
    --accent-dark: #1b5e20;
    --accent-soft: #e8f5e9;
    --panel: linear-gradient(150deg, #0b2e17 0%, #134a24 45%, #1f6b33 100%);
    --panel-glow: rgba(132, 204, 22, .22);
    background: #f4f6f4;
    font-family: Poppins, 'Hind Vadodara', sans-serif;
    color: #1f2d1f;
}
body.pvf-auth-agent {
    --accent: #e8590c;
    --accent-dark: #c2410c;
    --accent-soft: #fff1e6;
    --panel: linear-gradient(150deg, #7c2d12 0%, #c2410c 48%, #f59e0b 100%);
    --panel-glow: rgba(254, 240, 138, .28);
    background: #fbf7f3;
}
.pvf-gu { font-family: 'Hind Vadodara', Poppins, sans-serif; }

/* ---------------------------------------------------------- Split layout */

.pvf-split { display: flex; min-height: 100vh; }

.pvf-brand {
    position: relative;
    flex: 0 0 46%;
    max-width: 46%;
    color: #fff;
    background: var(--panel);
    overflow: hidden;
    display: flex;
}
/* soft rings + dotted texture */
.pvf-brand::before {
    content: '';
    position: absolute;
    width: 620px; height: 620px;
    right: -260px; top: -200px;
    border-radius: 50%;
    border: 80px solid rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .03);
}
.pvf-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 88%, var(--panel-glow) 0, transparent 45%),
        radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 22px 22px;
    pointer-events: none;
}
.pvf-brand-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: auto;
    padding: 56px 56px 48px;
}

.pvf-brand-head { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.pvf-brand-logo {
    flex: 0 0 72px; height: 72px;
    border-radius: 20px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.pvf-brand-logo img { max-width: 58px; max-height: 58px; }
.pvf-brand-name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.pvf-brand-name-gu { font-size: 15px; opacity: .8; }

.pvf-portal-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
}
.pvf-portal-badge .pvf-gu { text-transform: none; opacity: .85; font-weight: 500; }

.pvf-brand-copy { margin: 22px 0 34px; }
.pvf-brand-copy h1 { color: #fff; font-size: 34px; font-weight: 700; line-height: 1.22; margin-bottom: 12px; letter-spacing: -.3px; }
.pvf-brand-copy p { font-size: 15px; opacity: .85; margin: 0; }

/* admin: feature list */
.pvf-features { list-style: none; padding: 0; margin: 0 0 34px; }
.pvf-features li, .pvf-steps li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(2px);
}
.pvf-features strong, .pvf-steps strong { display: block; font-size: 15px; font-weight: 600; }
.pvf-features span:not(.pvf-feature-icon), .pvf-steps li div span { display: block; font-size: 13px; opacity: .78; }
.pvf-feature-icon {
    flex: 0 0 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .95);
    color: var(--accent-dark);
    font-size: 17px;
}

/* agent: numbered steps */
.pvf-steps { list-style: none; padding: 0; margin: 0 0 30px; counter-reset: none; }
.pvf-step-no {
    flex: 0 0 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    color: var(--accent-dark);
    font-weight: 700;
}

.pvf-brand-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; opacity: .8; }
.pvf-brand-note i { margin-top: 3px; }

.pvf-help-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    color: #3b1d0b !important;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    transition: transform .2s;
}
.pvf-help-card:hover { transform: translateY(-2px); }
.pvf-help-card small { display: block; color: #8a5a3a; font-size: 12px; }
.pvf-help-card strong { font-size: 16px; }
.pvf-help-icon {
    flex: 0 0 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
}

/* ---------------------------------------------------------- Form panel */

.pvf-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pvf-main-top { display: flex; justify-content: flex-end; gap: 22px; padding: 24px 40px 0; font-size: 13px; font-weight: 500; }
.pvf-main-top a { color: #6b7280; }
.pvf-main-top a:hover { color: var(--accent); }
.pvf-main-top i { margin-right: 4px; font-size: 12px; }
.pvf-main-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 24px; }
.pvf-main-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 18px 40px; font-size: 12px; color: #9ca3af; }
.pvf-main-foot a { color: #9ca3af; }
.pvf-main-foot a:hover { color: var(--accent); }

.pvf-box { width: 100%; max-width: 430px; }
.pvf-box img.max-h-80px { display: none; } /* password pages: the logo is in the brand panel */

.pvf-form-head { margin-bottom: 30px; }
.pvf-form-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 12px; font-weight: 600; letter-spacing: .3px;
    margin-bottom: 14px;
}
.pvf-form-head h2 { font-size: 30px; font-weight: 700; color: #111827; margin-bottom: 6px; letter-spacing: -.3px; }
.pvf-form-head p { color: #6b7280; margin: 0; font-size: 14px; }

.pvf-auth .form-group { margin-bottom: 20px; }
.pvf-auth .form-group label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.pvf-auth .form-group label .pvf-gu { font-weight: 500; color: #9ca3af; }

.pvf-input { position: relative; }
.pvf-input .pvf-input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 14px; pointer-events: none; z-index: 2;
}
.pvf-auth .form-control,
.pvf-auth .form-control.form-control-solid {
    height: 52px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 14.5px;
    color: #111827;
    transition: border-color .15s, box-shadow .15s;
}
.pvf-input .form-control { padding-left: 44px; }
.pvf-auth .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
    background: #fff;
}
.pvf-input:focus-within .pvf-input-icon { color: var(--accent); }
.pvf-auth .form-control.is-invalid { border-color: #ef4444 !important; }
.pvf-auth .invalid-feedback { display: block; font-size: 12px; }

/* show / hide password */
.pvf-pass .form-control { padding-right: 46px; }
.pvf-pass .pvf-pass-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    border: 0; background: transparent; border-radius: 10px;
    color: #9ca3af; z-index: 2;
}
.pvf-pass .pvf-pass-toggle:hover,
.pvf-pass .pvf-pass-toggle:focus { color: var(--accent); background: var(--accent-soft); outline: 0; }

.pvf-auth .checkbox { font-size: 13px; color: #4b5563; }
.pvf-auth .checkbox > input:checked ~ span { background-color: var(--accent); }
.pvf-hint { font-size: 12.5px; color: #9ca3af; }
a.pvf-hint:hover { color: var(--accent); }

.pvf-auth .btn.btn-primary,
.pvf-auth .btn.btn-primary:focus,
.pvf-auth .btn.btn-primary:not(:disabled):not(.disabled):active {
    background: var(--accent);
    border-color: var(--accent);
}
.pvf-auth .btn.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.pvf-submit {
    height: 52px;
    border-radius: 12px;
    font-size: 15px; font-weight: 600;
    margin-top: 6px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 30%, transparent);
}
.pvf-link, .pvf-auth a.text-primary, .pvf-auth .text-primary { color: var(--accent) !important; font-weight: 600; }
.pvf-link:hover { color: var(--accent-dark) !important; text-decoration: underline; }

.pvf-form-switch {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #eef0ee;
    text-align: center;
    font-size: 13.5px;
    color: #6b7280;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1199.98px) {
    .pvf-brand-inner { padding: 44px 40px; }
    .pvf-brand-copy h1 { font-size: 28px; }
}

/* Tablet / phone: brand panel becomes a compact header */
@media (max-width: 991.98px) {
    .pvf-split { flex-direction: column; }
    .pvf-brand { flex: none; max-width: none; }
    .pvf-brand-inner { padding: 26px 22px 30px; max-width: none; }
    .pvf-brand-head { margin-bottom: 16px; }
    .pvf-brand-logo { flex-basis: 56px; height: 56px; border-radius: 16px; }
    .pvf-brand-logo img { max-width: 44px; max-height: 44px; }
    .pvf-brand-copy { margin: 14px 0 0; }
    .pvf-brand-copy h1 { font-size: 22px; margin-bottom: 4px; }
    .pvf-brand-copy p { font-size: 13px; }
    .pvf-features, .pvf-steps, .pvf-brand-note { display: none; }
    .pvf-help-card { display: none; }

    .pvf-main-top { padding: 16px 20px 0; }
    .pvf-main-body { padding: 24px 20px 10px; align-items: flex-start; }
    .pvf-main-foot { padding: 16px 20px; justify-content: center; text-align: center; }
    .pvf-form-head h2 { font-size: 25px; }
}
