/* ==========================================================================
   Veronique Heights — Staff Sign-in
   Design tokens
   Ink   #14231F  — hero panel, primary text on ivory
   Brass #C6A15B  — accent, focus states, key-line motif
   Ivory #FBF8F2  — form panel background
   Sage  #6B7B72  — secondary text
   Clay  #A64B3B  — error state only (used sparingly)
   ========================================================================== */

:root {
    --ink: #14231F;
    --ink-soft: #1D332C;
    --brass: #C6A15B;
    --brass-soft: #E4D3A6;
    --ivory: #FBF8F2;
    --ivory-dim: #F3EEE3;
    --sage: #6B7B72;
    --clay: #A64B3B;
    --line: rgba(20, 35, 31, 0.12);
    --line-on-ink: rgba(230, 220, 195, 0.18);
    --shadow: 0 24px 60px -20px rgba(20, 35, 31, 0.35);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ---------------------------------------------------------------------- *
 * Left panel — brand / ink
 * ---------------------------------------------------------------------- */
.vh-brand {
    position: relative;
    flex: 0 0 44%;
    max-width: 560px;
    min-height: 100vh;
    background: linear-gradient(165deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: var(--ivory);
    padding: 56px 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.vh-brand-rules {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        180deg,
        var(--line-on-ink) 0px,
        var(--line-on-ink) 1px,
        transparent 1px,
        transparent 34px
    );
    opacity: 0.5;
    pointer-events: none;
}

.vh-brand-top {
    position: relative;
    z-index: 2;
}

.vh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass-soft);
}
.vh-kicker::before {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--brass);
}

.vh-wordmark {
    margin: 22px 0 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.vh-wordmark img.vh-logo-img {
    max-height: 64px;
    display: block;
    margin-bottom: 18px;
}

.vh-tagline {
    margin: 18px 0 0;
    max-width: 30ch;
    color: rgba(251, 248, 242, 0.72);
    font-size: 15px;
    line-height: 1.6;
}

/* Signature arch / key motif */
.vh-arch-motif {
    position: absolute;
    left: -60px;
    bottom: -40px;
    width: 420px;
    height: 420px;
    z-index: 1;
    opacity: 0.9;
}

.vh-brand-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line-on-ink);
    padding-top: 20px;
    font-size: 13px;
    color: rgba(251, 248, 242, 0.6);
    line-height: 1.6;
}
.vh-brand-bottom strong {
    color: var(--brass-soft);
    font-weight: 600;
}

/* ---------------------------------------------------------------------- *
 * Right panel — form
 * ---------------------------------------------------------------------- */
.vh-form-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.vh-form-panel {
    width: 100%;
    max-width: 400px;
}

.vh-form-header {
    margin-bottom: 28px;
}
.vh-form-header h1 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 30px;
    color: var(--ink);
}
.vh-form-header p {
    margin: 8px 0 0;
    color: var(--sage);
    font-size: 14px;
}

/* Flash messages */
.vh-flash {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    text-align: left;
}
.vh-flash.is-error {
    background: rgba(166, 75, 59, 0.09);
    color: var(--clay);
    border: 1px solid rgba(166, 75, 59, 0.25);
}
.vh-flash.is-success {
    background: rgba(107, 123, 114, 0.12);
    color: #2F4A3E;
    border: 1px solid rgba(107, 123, 114, 0.3);
}

/* Segmented toggle (username / pin) */
.vh-segmented {
    display: flex;
    background: var(--ivory-dim);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 26px;
}
.vh-segmented a.btn_login_pin_type {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sage);
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    border: none;
}
.vh-segmented a.btn_login_pin_type:hover {
    color: var(--ink);
}
.vh-segmented a.btn_login_pin_type.active_login_btn {
    background: var(--ink);
    color: var(--ivory) !important;
    box-shadow: 0 6px 16px -8px rgba(20, 35, 31, 0.5);
}

/* Floating-label inputs (structure unchanged, restyled) */
.vh-field {
    position: relative;
    margin-bottom: 22px;
}
.vh-field .input-container {
    position: relative;
    margin: 0;
}
.vh-field input {
    outline: none;
    width: 100%;
    height: 50px;
    padding: 18px 2px 6px;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--line);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}
.vh-field label {
    position: absolute;
    left: 2px;
    top: 16px;
    color: var(--sage);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    transition: transform .18s ease, color .18s ease;
    transform-origin: left top;
    pointer-events: none;
}
.vh-field input:focus ~ label,
.vh-field input:valid ~ label {
    transform: translateY(-14px) scale(0.72);
    color: var(--brass);
    font-weight: 600;
}
.vh-field .bar {
    position: absolute;
    left: 0;
    bottom: -1.5px;
    width: 100%;
    height: 2px;
    background: transparent;
}
.vh-field .bar::before,
.vh-field .bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 2px;
    background: var(--brass);
    transition: width .25s ease;
}
.vh-field .bar::before { left: 50%; }
.vh-field .bar::after { right: 50%; }
.vh-field input:focus ~ .bar::before,
.vh-field input:focus ~ .bar::after { width: 50%; }

.error_txt {
    color: var(--clay);
    font-size: 12.5px;
    margin: -14px 0 14px;
}

/* Preserved from the original stylesheet: login.js toggles .div_1/.div_2
   visibility on click, but the *initial* hidden state (before JS runs)
   still needs this class - without it both modes would flash visible
   for a moment on page load. */
.display_none_login {
    display: none;
}
.text_center {
    text-align: center;
}

/* PIN entry */
#loginpin {
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
}
#loginpin input {
    width: 52px !important;
    height: 58px !important;
    margin: 0 6px !important;
    text-align: center;
    font-size: 22px !important;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--ivory-dim);
    border: 1.5px solid var(--line) !important;
    border-radius: 10px !important;
    outline: none;
}
#loginpin input:focus {
    border-color: var(--brass) !important;
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}

/* Submit button */
.vh-submit {
    width: 100%;
    padding: 15px 0;
    background: var(--ink);
    color: var(--ivory);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
}
.vh-submit:hover {
    background: #0E1C18;
    box-shadow: 0 10px 24px -10px rgba(198, 161, 91, 0.55);
}
.vh-submit:active { transform: translateY(1px); }

.vh-footer-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.vh-footer-links a {
    color: var(--sage);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.vh-footer-links a:hover {
    color: var(--ink);
    border-bottom-color: var(--brass);
}

.vh-signup {
    text-align: center;
    margin-top: 14px;
    font-size: 13.5px;
}
.vh-signup a { color: var(--brass); font-weight: 600; text-decoration: none; }
.vh-signup a:hover { text-decoration: underline; }

.vh-version {
    margin-top: 28px;
    text-align: right;
    font-size: 11px;
    color: var(--line);
}

/* Demo mode chips */
.vh-demo {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}
.vh-demo p {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
    text-align: center;
}
.vh-demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.vh-demo-chips a.btn_demo {
    background: var(--ivory-dim);
    color: var(--ink) !important;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    margin: 0;
}
.vh-demo-chips a.btn_demo:hover {
    border-color: var(--brass);
    color: var(--brass) !important;
}
.vh-buy-now {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--clay) !important;
}

/* ---------------------------------------------------------------------- *
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 900px) {
    .vh-shell { flex-direction: column; }
    .vh-brand {
        flex: none;
        max-width: none;
        min-height: 0;
        padding: 32px 24px 26px;
    }
    .vh-arch-motif { width: 220px; height: 220px; left: -40px; bottom: -60px; opacity: 0.6; }
    .vh-wordmark { font-size: 30px; }
    .vh-tagline { display: none; }
    .vh-brand-bottom { display: none; }
    .vh-form-wrap { padding: 32px 20px 48px; }
}

@media (max-width: 420px) {
    #loginpin input { width: 44px !important; height: 50px !important; margin: 0 4px !important; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .vh-submit, .vh-field label, .vh-field .bar::before, .vh-field .bar::after,
    .vh-segmented a.btn_login_pin_type { transition: none !important; }
}

/* Visible keyboard focus for accessibility */
a.btn_login_pin_type:focus-visible,
.vh-submit:focus-visible,
.vh-footer-links a:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}
