/* =================================================================
 * VOGO Register page — v1.4
 * Fixes: alignment right, white bg always, custom checkbox,
 * faded captcha digits with refresh, autofill override
 * ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

:root {
    --ink:           #1a2229;
    --ink-muted:     #6b7280;
    --ink-faint:     #9ca3af;

    --brand:         #0A8A3E;
    --brand-tint:    #ecfdf5;
    --brand-glow:    rgba(10,138,62,0.10);

    --btn:           #16A34A;
    --btn-hover:     #15803d;
    --btn-shadow:    rgba(22,163,74,0.30);

    --link:          #0A8A3E;
    --link-hover:    #086d31;

    --bg-page:       #ffffff;
    --bg-card:       #ffffff;
    --bg-hero:       #ffffff;

    --line:          #e5e7eb;
    --line-strong:   #d1d5db;

    --font:          'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --radius:        12px;
    --radius-btn:    12px;

    --input-h:       52px;
    --input-pl:      48px;
    --field-gap:     12px;
}

html, body { height: 100%; }

body.login {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background: var(--bg-page) !important;
    font-family: var(--font);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.login > script,
body.login > noscript,
body.login #language-switcher,
body.login .privacy-policy-page-link { display: none !important; }


/* ============================================================
 * SHELL — 1fr/2fr (33%/66%)
 * ============================================================ */
.vogo-shell {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 100vh;
    width: 100vw;
    align-items: stretch;
}


/* ============================================================
 * FORM COLUMN (left) — white bg, top + RIGHT aligned
 * ============================================================ */
.vogo-form-col {
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;        /* RIGHT alignment per user req */
    padding: 16px 32px 24px 20px;
    z-index: 2;
    position: relative;
}

.vogo-form-inner {
    background: #ffffff;
    padding: 0;
    width: 80%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
}


/* ============================================================
 * BRAND
 * ============================================================ */
.vogo-brand {
    margin: 0 0 20px;
    line-height: 1;
    text-align: left;
}
.vogo-brand-text {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.01em;
    line-height: 1;
}
.vogo-brand-sup {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand);
    margin-left: 1px;
    vertical-align: super;
    position: relative;
    top: -6px;
}


/* ============================================================
 * HEADING + SUBTITLE
 * ============================================================ */
.vogo-title {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 8px;
    text-align: center;
}
.vogo-title-sup {
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: super;
    color: var(--ink);
    margin-left: 1px;
    position: relative;
    top: -.4em;
}
.vogo-subtitle {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0 0 22px;
    text-align: center;
}


/* ============================================================
 * WP LOGIN container — strip defaults
 * ============================================================ */
body.login #login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body.login #login h1,
body.login #login .message,
body.login #login p#reg_passmail { display: none !important; }

body.login form#registerform {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Override WP login.css `.login form { overflow: hidden }` — was clipping the
       first field's floating label (Email address) because top:-10px protrudes
       above the form's top edge when padding is 0. */
    overflow: visible !important;
}

body.login form p {
    margin: 0 0 var(--field-gap) !important;
    padding: 0 !important;
}

/* HARD HIDE every native label that isn't our floating label or terms checkbox.
 * Defense at multiple selector levels — covers WP markup variants.
 * IMPORTANT: every label-matching selector MUST exclude both .vogo-floating-label
 * AND .vogo-terms-label, otherwise the terms checkbox label disappears. */
body.login form p > label:not(.vogo-floating-label):not(.vogo-terms-label),
body.login form p label[for]:not(.vogo-floating-label):not(.vogo-terms-label),
body.login form > p > br,
body.login form p > br {
    display: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
}

/* HIDE Username field row — username is auto-generated from email server-side
 * Multi-layer defense: target input directly + parent <p> + custom class */
body.login form input#user_login,
body.login form #user_login,
body.login form p:has(#user_login),
body.login form p.vogo-hidden-row,
body.login form label[for="user_login"]:not(.vogo-floating-label) {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ============================================================
 * INPUTS — 52px tall, 12px radius, white bg ALWAYS (incl. autofill)
 * ============================================================ */
body.login form input.input,
body.login form input[type=text],
body.login form input[type=password],
body.login form input[type=email],
body.login form input[type=tel] {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    padding: 0 16px 0 var(--input-pl) !important;
    font-family: var(--font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: var(--input-h) !important;
    box-shadow: none !important;
    color: var(--ink) !important;
    height: var(--input-h) !important;
    min-height: var(--input-h) !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

body.login form input.input:hover,
body.login form input[type=text]:hover,
body.login form input[type=password]:hover,
body.login form input[type=email]:hover,
body.login form input[type=tel]:hover {
    border-color: var(--line-strong) !important;
}

body.login form input.input:focus,
body.login form input[type=text]:focus,
body.login form input[type=password]:focus,
body.login form input[type=email]:focus,
body.login form input[type=tel]:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--brand-glow) !important;
    outline: none !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

body.login form input::placeholder {
    color: transparent !important;
    opacity: 1;
}

/* === AUTOFILL OVERRIDE — keep bg WHITE when browser autofills (Chrome/Edge default = blue) === */
body.login form input:-webkit-autofill,
body.login form input:-webkit-autofill:hover,
body.login form input:-webkit-autofill:focus,
body.login form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--ink) !important;
    caret-color: var(--ink) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}


/* ============================================================
 * ICONS — vertically centered
 * ============================================================ */
.vogo-input-wrap {
    position: relative;
    display: block;
    height: var(--input-h);
}
.vogo-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    text-align: center;
    font-size: 18px;
    color: var(--brand);
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}


/* ============================================================
 * FLOATING LABELS
 * Resting: centered vertically inside the input.
 * Active : sits ABOVE the input top border (top:-7px), fully visible.
 * ============================================================ */
.vogo-input-wrap { overflow: visible !important; }

.vogo-floating-label {
    position: absolute;
    left: var(--input-pl);
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font);
    font-size: 14px !important;
    font-weight: 500;
    color: var(--ink-faint);
    pointer-events: none;
    transition: top .18s ease, left .18s ease, font-size .18s ease, color .18s ease, padding .18s ease, background .18s ease;
    background: transparent;
    line-height: 1;
    z-index: 5;                    /* above input bg AND icon */
    white-space: nowrap;
    display: block !important;
}

.vogo-input-wrap:focus-within .vogo-floating-label,
.vogo-input:not(:placeholder-shown) ~ .vogo-floating-label,
.vogo-input.is-filled ~ .vogo-floating-label {
    top: -10px;                    /* fully above input top border */
    transform: none;
    left: 14px;
    font-size: 12px !important;    /* bigger so user actually sees it */
    font-weight: 700;
    color: var(--brand);
    background: #ffffff;
    padding: 2px 8px;              /* generous padding to mask border line */
    border-radius: 4px;
    line-height: 1.2;
    box-shadow: 0 0 0 1px #ffffff; /* extra masking outside the padding box */
}


/* ============================================================
 * Field wrapper margin
 * ============================================================ */
.vogo-field { margin: 0 0 var(--field-gap) !important; }
.vogo-input.input { padding-left: var(--input-pl) !important; }
.vogo-input-pwd { padding-right: 48px !important; }


/* ============================================================
 * Eye toggle for password
 * ============================================================ */
.vogo-pwd-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--ink-faint);
    border-radius: 8px;
    line-height: 1;
    transition: color .15s ease, background-color .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}
.vogo-pwd-toggle:hover { color: var(--brand); background: var(--brand-tint); }
.vogo-pwd-toggle .bi { font-size: 16px; }


/* ============================================================
 * CAPTCHA — flat row: digits | input | refresh
 * All three vertically aligned center
 * ============================================================ */
.vogo-captcha-wrap {
    margin: 0 0 var(--field-gap) !important;
    padding: 8px 10px;
    background: #f3f4f6;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    align-items: center;             /* vertical center alignment */
    gap: 10px;
    /* No explicit height + box-sizing: wrap auto-sizes to fit children.
       With 38px elements + 16px padding + 2px border, wrap renders at 56px.
       Earlier explicit `height: 52px; box-sizing: border-box` gave a 34px
       content area which was 4px smaller than the 38px children, causing
       inconsistent flex cross-axis behavior across browsers (some aligned
       to start instead of centering, making the input appear misaligned). */
    min-height: 52px;
    overflow: visible;
}

/* Digits — fills remaining horizontal space, content centered */
.vogo-captcha-question {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: #b8bcc4;
    letter-spacing: .14em;
    line-height: 1;                  /* tight line-height for clean centering */
    user-select: none;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(156,163,175,.55);
    text-shadow:
        1px 1px 0 rgba(255,255,255,.5),
        -1px 0 0 rgba(0,0,0,.04);
    white-space: nowrap;
    /* Removed rotate/skew — they shifted vertical alignment visually */
    align-self: center !important;
    margin: 0 !important;
}

/* Input — fixed compact width, after digits.
 * Selector includes `body.login form input[type=text]` for specificity (0,3,3) — beats
 * the generic body.login form input[type=text] rule (0,2,3) that would otherwise
 * force padding-left:48px and height:52px, leaving the 56px-wide captcha box with
 * negative typing space and effectively unfocusable.
 *
 * Vertical alignment: outer height 38px matches the refresh button outer height
 * (refresh = 36px content-box + 2px border = 38px). Content area = 38 - 2px border
 * = 36px, exactly fits line-height: 36px so text "6" is perfectly centered AND
 * shares the same y-center as the refresh icon and the question's line-through. */
body.login form input[type=text].vogo-captcha-input {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 8px !important;
    padding: 0 4px !important;
    font-family: var(--font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    text-align: center !important;
    line-height: 36px !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
    /* Defensive cross-axis override: Chromium can pick the input's first-line
       baseline instead of the outer center for `<input>` flex items, even with
       align-items:center on the parent. !important + vertical-align + margin:0
       force deterministic centering. */
    align-self: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
}
.vogo-captcha-input:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 2px var(--brand-glow) !important;
    outline: none !important;
}

/* Refresh button — after input */
.vogo-captcha-refresh {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .3s ease;
    align-self: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
}
.vogo-captcha-refresh:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-tint);
}
.vogo-captcha-refresh:active { transform: rotate(180deg); }
.vogo-captcha-refresh.is-spinning { animation: vogoSpin .6s linear; }
.vogo-captcha-refresh .bi { font-size: 15px; }


/* ============================================================
 * TERMS — custom prettier checkbox aligned with text
 * ============================================================ */
.vogo-terms-row { margin: 14px 0 18px !important; }
.vogo-terms-label {
    display: flex !important;
    align-items: center;              /* CENTER vertical alignment for single line */
    gap: 10px;
    line-height: 1.45;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0;
}

/* Custom checkbox — replace ugly native with branded design */
.vogo-terms-label input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    transition: all .15s ease;
}
.vogo-terms-label input[type=checkbox]:hover {
    border-color: var(--brand);
}
.vogo-terms-label input[type=checkbox]:checked {
    background: var(--brand);
    border-color: var(--brand);
}
/* Checkmark — pure CSS rotated triangle */
.vogo-terms-label input[type=checkbox]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 11px;
    border: 2px solid #ffffff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}
.vogo-terms-label input[type=checkbox]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-glow);
    border-color: var(--brand);
}

.vogo-terms-text {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-muted);
    line-height: 1.45;
    flex: 1;
}
.vogo-terms-label a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.vogo-terms-label a:hover { color: var(--link-hover); }


/* ============================================================
 * SUBMIT BUTTON
 * ============================================================ */
body.login form p.submit { margin: 6px 0 14px !important; }

.vogo-submit-btn,
body.login form input[type=submit].button-primary,
body.login form #wp-submit {
    width: 100% !important;
    height: 56px !important;
    background-color: var(--btn) !important;
    background-image: none !important;
    border: 0 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 6px 16px -4px var(--btn-shadow) !important;
    border-radius: var(--radius-btn) !important;
    padding: 0 22px !important;
    line-height: 56px !important;
    font-family: var(--font) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease !important;
    position: relative;
}

body.login form input[type=submit].button-primary,
body.login form #wp-submit:not(.vogo-submit-btn) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") !important;
    background-position: calc(100% - 20px) center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    padding: 0 48px 0 22px !important;
}

.vogo-submit-btn:hover,
body.login form input[type=submit].button-primary:hover,
body.login form #wp-submit:hover {
    background-color: var(--btn-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -4px rgba(22,163,74,0.4) !important;
}
.vogo-submit-btn:active { transform: translateY(0); }

.vogo-submit-icon { display: inline-flex; align-items: center; line-height: 1; }
.vogo-submit-icon svg { width: 20px; height: 20px; }

.vogo-submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: vogoSpin .7s linear infinite;
}
@keyframes vogoSpin { to { transform: rotate(360deg); } }

.vogo-submit-btn.is-loading {
    cursor: wait;
    background-color: var(--btn-hover) !important;
}
.vogo-submit-btn.is-loading .vogo-submit-icon { display: none !important; }
.vogo-submit-btn.is-loading .vogo-submit-spinner { display: inline-block !important; }


/* ============================================================
 * SIGN-IN FOOTER
 * ============================================================ */
body.login #nav,
body.login #backtoblog { display: none !important; }

.vogo-signin-row {
    text-align: center;
    margin-top: 0;
    font-family: var(--font);
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.4;
}
.vogo-signin-row a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.vogo-signin-row a:hover { color: var(--link-hover); text-decoration: underline; }


/* ============================================================
 * LOGIN — wp-login.php (default action) form-only customizations
 * Activated via login_body_class adding 'vogo-login' (see login.php).
 * Most styling is shared with register (form inputs, captcha, submit button,
 * EUIPO card). This block only handles login-specific extras WP renders
 * (rememberme + nav links) that are NOT in our form spec.
 * ============================================================ */
body.login.vogo-login p.forgetmenot {
    display: none !important;
}


/* ============================================================
 * REGISTER CONFIRMATION — post-registration screen styling
 * Activated via login_body_class adding 'vogo-register-confirm'
 * (see register_confirm.php). Styles WP-rendered <p class="message">
 * and #backtoblog inside the shell.
 * ============================================================ */
/* 20% top breathing room before "Almost there!" — only on this page (the
   register form has its own dense layout where the same padding would push
   the form below the fold). */
body.login.vogo-register-confirm .vogo-form-inner {
    padding-top: 20vh;
}

body.login.vogo-register-confirm #login p.message {
    background: var(--brand-tint);
    border: 1px solid var(--brand);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 16px;
    box-shadow: none;
}
body.login.vogo-register-confirm #login p.message a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.login.vogo-register-confirm #login p.message a:hover {
    color: var(--link-hover);
}

/* Show #backtoblog (← Go to vogo.me) ONLY on register-confirm page.
 * Overrides the global hide rule (body.login #backtoblog { display:none !important })
 * via higher specificity (0,3,2 vs 0,2,2). */
body.login.vogo-register-confirm #backtoblog {
    display: block !important;
    text-align: center;
    margin: 16px 0 0;
    font-family: var(--font);
    font-size: 13px;
}
body.login.vogo-register-confirm #backtoblog a {
    color: var(--ink-muted);
    text-decoration: none;
    font-weight: 500;
}
body.login.vogo-register-confirm #backtoblog a:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ============================================================
 * EUIPO TRADEMARK CARD — REPLICATED EXACTLY from /ecomm-contact-request/
 * Mirrors the inline styles from the source markup verbatim. Do NOT add
 * width:100%, custom <a> rules, or font-family overrides — the source has none.
 * ============================================================ */
.vogo-euipo-card {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.vogo-euipo-card img {
    max-width: 220px;
    height: auto;
    display: inline-block;
}
.vogo-euipo-note {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 6px;
    text-align: center;
}


/* ============================================================
 * ERRORS — server-side errors get distributed inline by JS
 * Fallback: if JS doesn't run, original WP error block stays styled
 * ============================================================ */
body.login #login_error.vogo-distributed { display: none !important; }

body.login #login_error,
body.login .login .message.error,
body.login .notice.notice-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-left: 3px solid #ef4444 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    color: #991b1b !important;
    font-family: var(--font) !important;
    font-size: 12.5px !important;
    line-height: 1.45;
    box-shadow: none !important;
    margin: 0 0 12px !important;
}

/* Inline per-field error message */
.vogo-field-error {
    display: block;
    margin-top: 4px;
    color: #dc2626;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    padding-left: 2px;
}

/* Invalid input state — red border instead of green focus */
body.login form input.vogo-input.is-invalid,
body.login form input.vogo-input.is-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.10) !important;
}
.vogo-input-wrap.is-invalid .vogo-input-icon { color: #dc2626; }
.vogo-input-wrap.is-invalid .vogo-floating-label,
.vogo-input-wrap.is-invalid:focus-within .vogo-floating-label,
.vogo-input.is-invalid:not(:placeholder-shown) ~ .vogo-floating-label {
    color: #dc2626;
}

/* Invalid checkbox — red border */
.vogo-terms-label input[type=checkbox].is-invalid {
    border-color: #dc2626;
}
.vogo-terms-label.is-invalid .vogo-terms-text { color: #dc2626; }

/* Invalid captcha */
.vogo-captcha-wrap.is-invalid {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}
.vogo-captcha-input.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220,38,38,.10) !important;
}


/* ============================================================
 * HERO COLUMN
 * ============================================================ */
.vogo-hero {
    background: var(--bg-hero);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
}

.vogo-hero-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    margin: 0 !important;
    object-fit: contain;
    object-position: top center;
    display: block;
    position: relative;
    inset: auto;
}


/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 1100px) {
    .vogo-shell { grid-template-columns: 380px 1fr; }
    .vogo-form-inner { width: 90%; }
}

@media (max-width: 980px) {
    .vogo-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .vogo-form-col {
        order: 1;
        padding: 28px 16px;
        justify-content: center;
    }
    .vogo-form-inner { width: 100%; max-width: 460px; }
    .vogo-hero {
        order: 2;
        padding: 32px 20px 24px;
        align-items: center;
        min-height: auto;
    }
    .vogo-hero-img { max-height: 50vh !important; }
}

@media (max-width: 480px) {
    .vogo-form-col { padding: 20px 12px; }
    .vogo-hero { padding: 24px 16px; }
}
