/*
 * Auth pages (Login, Sign Up, Forgot password, Reset password), owner design canvas boards of 2026-11-19.
 * Markup: resources/views/custom/vs-auth-*.blade.php. Every class is vsa-*: no shared theme class (sign-box, card-v,
 * btn, form-control ...) is changed, so no other page can be affected. Loaded only by those pages (@push('styles')).
 * Values are the board's: card white, 12px radius, 1px #D5D6DB, 36px padding, no shadow; fields 48px, 6px radius,
 * 1px #8A8D96, focus 1px #111111 border + 1px #111111 shadow; button 48px lime #BCFD1D, text #111111.
 */
.vsa-main { padding: 8px 32px 72px; box-sizing: border-box; font-family: inherit; color: #2B2B2B; }
.vsa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; max-width: 1200px; margin: 0 auto; }
.vsa-h1 { overflow-wrap: anywhere; margin: 0; font-size: 52px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: #111111; }
.vsa-lead { margin: 16px 0 0; max-width: 440px; font-size: 18px; line-height: 1.5; color: #4A4E5A; }
.vsa-art { margin-top: 32px; max-width: 560px; }
.vsa-art img { display: block; width: 100%; height: auto; }

.vsa-card { padding: 36px; border-radius: 12px; background: #FFFFFF; border: 1px solid #D5D6DB; box-sizing: border-box; }
.vsa-h2 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 600; color: #111111; }
.vsa-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #4A4E5A; }
.vsa-form { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.vsa-form > * { min-width: 0; }
.vsa-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }

.vsa-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: #2B2B2B; }
.vsa-field { display: flex; align-items: center; height: 48px; padding: 0 14px; border: 1px solid #8A8D96; border-radius: 6px; background: #FFFFFF; }
.vsa-field:focus-within { border-color: #111111; box-shadow: 0 0 0 1px #111111; }
.vsa-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 16px; color: #2B2B2B; padding: 0; box-shadow: none; }
.vsa-field.is-readonly { background: #F4F4F2; }
.vsa-field.is-invalid { border-color: #B3261E; }
.vsa-field.is-invalid:focus-within { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.vsa-hint { margin: 6px 0 0; font-size: 13px; color: #4A4E5A; }
.vsa-err { margin: 6px 0 0; font-size: 13px; font-weight: 500; color: #B3261E; }

.vsa-eye { width: 44px; height: 44px; margin-inline-end: -10px; border: 0; border-radius: 6px; background: transparent; color: #4A4E5A; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vsa-eye:hover { background: rgba(34, 34, 34, 0.06); color: #222222; }
.vsa-eye .vsa-eye-off { display: none; }
.vsa-eye[aria-pressed="true"] .vsa-eye-on { display: none; }
.vsa-eye[aria-pressed="true"] .vsa-eye-off { display: block; }

.vsa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vsa-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 14px; color: #2B2B2B; cursor: pointer; }
.vsa-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #2E7D0A; cursor: pointer; }
.vsa-check-top { display: flex; align-items: flex-start; line-height: 1.5; }
.vsa-check-top input { margin-top: 3px; }
.vsa-link { color: #2E7D0A; font-weight: 600; text-decoration: none; }
.vsa-link:hover { text-decoration: underline; }
.vsa-row .vsa-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.vsa-link-pad { display: inline-block; padding: 12px 4px; }

.vsa-btn { display: block; width: 100%; height: 48px; border: 0; border-radius: 6px; background: #BCFD1D; color: #111111; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.vsa-btn:hover { background: #A9EA0F; }

.vsa-or { margin: 24px 0; display: flex; align-items: center; gap: 12px; font-size: 14px; color: #4A4E5A; }
.vsa-or::before, .vsa-or::after { content: ""; flex: 1; height: 1px; background: rgba(34, 34, 34, 0.18); }
.vsa-social { display: grid; gap: 12px; }
.vsa-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid #8A8D96; border-radius: 6px; background: #FFFFFF; color: #2B2B2B; font-size: 15px; font-weight: 500; text-decoration: none; }
.vsa-social-btn:hover { background: #F4F4F2; color: #2B2B2B; }
.vsa-social-btn img { display: block; width: 20px; height: 20px; }

.vsa-switch { margin: 24px 0 0; font-size: 15px; color: #2B2B2B; }
.vsa-note { margin: 24px 0 0; padding: 14px 16px; border: 1px solid #D5D6DB; border-radius: 6px; background: #F4F4F2; font-size: 14px; line-height: 1.5; color: #2B2B2B; }
.vsa-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
[dir="rtl"] .vsa-back svg { transform: scaleX(-1); }

/* visible keyboard focus for links, buttons and checkboxes (fields use the :focus-within border above) */
.vsa-link:focus-visible, .vsa-btn:focus-visible, .vsa-social-btn:focus-visible, .vsa-eye:focus-visible, .vsa-check input:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }

/* below 1000px: one column. The theme container already adds 12px each side, so the main block only adds 8px (20px
   from the screen edge, the board's value). The column is capped so the card never becomes a 900px wide form on a tablet. */
@media (max-width: 1000px) {
    .vsa-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 560px; }
    .vsa-art { display: none; }
    .vsa-main { padding: 8px 8px 56px; }
}
@media (max-width: 480px) {
    .vsa-card { padding: 24px; }
    .vsa-h1 { font-size: 34px; }
    .vsa-two { grid-template-columns: 1fr; }
}
/* captcha widgets are fixed width (reCAPTCHA 304px, hCaptcha about 303px, Turnstile 300px): scale them down on very
   narrow cards instead of letting them overflow. Height is pulled back by the same amount. */
@media (max-width: 400px) {
    .vsa-card { padding: 20px; }
    .vsa-form .g-recaptcha, .vsa-form .h-captcha, .vsa-form .cf-turnstile { transform: scale(0.9); transform-origin: 0 0; margin-bottom: -8px; }
}
@media (max-width: 340px) {
    .vsa-form .g-recaptcha, .vsa-form .h-captcha, .vsa-form .cf-turnstile { transform: scale(0.75); margin-bottom: -18px; }
}
