/* Sign-in / password pages (layouts/split.php). Mobile first: form only (+ logo) on phones, marketing band on
   tablets, 60/40 split from 1024px. Brand: #06272B deep, #10534D dark, #278460 emerald, #8ABF98 sage, white. */
.auth-body { margin: 0; min-height: 100vh; background: #ffffff; }
.auth-skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 12px; border-radius: 6px; background: #278460; color: #ffffff; }
.auth-skip:focus { left: 8px; }
.auth-split { display: flex; flex-direction: column; min-height: 100vh; }

/* Marketing panel */
.auth-hero { display: none; position: relative; overflow: hidden; color: #ffffff;
    background: radial-gradient(circle at 20% 15%, rgba(138, 191, 152, 0.28), transparent 45%), linear-gradient(145deg, #06272B 0%, #10534D 62%, #278460 100%); }
.auth-hero-glow { position: absolute; width: 520px; height: 520px; right: -160px; bottom: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 191, 152, 0.35), transparent 65%); animation: auth-pulse 9s ease-in-out infinite; }
.auth-hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 32px 40px; box-sizing: border-box; }
.auth-hero-logo { width: 150px; height: auto; }
.auth-hero-figure { margin: 24px 0 8px; }
.auth-hero-image { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
    animation: auth-float 7s ease-in-out infinite; }
.auth-hero-title { margin: 16px 0 8px; font-size: 1.9rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.auth-hero-text { margin: 0; max-width: 34rem; font-size: 1.05rem; line-height: 1.6; color: #d8ecdf; }
.auth-hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.auth-hero-points li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(138, 191, 152, 0.4);
    border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.auth-hero-points i { color: #8ABF98; }

@media (min-width: 768px) {
    .auth-hero { display: block; }
    .auth-hero-inner { padding: 28px 40px; }
    .auth-hero-figure { display: none; }            /* tablet: compact band with text only */
    .auth-hero-title { font-size: 1.5rem; }
    .auth-panel .auth-mobile-logo { display: none; }   /* the brand logo is on the marketing panel */
}
@media (min-width: 1024px) {
    .auth-split { flex-direction: row; }
    .auth-hero { flex: 0 0 60%; max-width: 60%; min-height: 100vh; }
    .auth-main { flex: 0 0 40%; max-width: 40%; }
    .auth-hero-inner { padding: 48px 7%; }
    .auth-hero-figure { display: block; }
    .auth-hero-title { font-size: 2.1rem; }
}

/* Form column */
.auth-main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box; background: #ffffff; }
.auth-panel { width: 100%; max-width: 26rem; animation: auth-in 0.45s ease-out both; }
.auth-mobile-logo { display: block; width: 150px; height: auto; margin: 0 auto 24px; }
.auth-head { margin-bottom: 20px; }
.auth-title { margin: 0; font-size: 1.6rem; font-weight: 800; color: #06272B; letter-spacing: -0.01em; }
.auth-sub { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.55; color: #475569; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; }
.auth-label { margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: #06272B; }
.auth-input { width: 100%; height: 46px; padding: 0 14px; box-sizing: border-box; font-size: 1rem; color: #06272B; background: #ffffff;
    border: 1px solid #cbd5d1; border-radius: 10px; transition: border-color 0.2s, box-shadow 0.2s; }
.auth-input:hover { border-color: #8ABF98; }
.auth-input:focus { outline: none; border-color: #278460; box-shadow: 0 0 0 4px rgba(138, 191, 152, 0.35); }
.auth-input[aria-invalid="true"] { border-color: #dc2626; }
.auth-input-short { max-width: 9rem; }
.auth-password { position: relative; }
.auth-input-password { padding-right: 52px; }
.auth-eye { position: absolute; top: 3px; right: 3px; width: 44px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #10534D; cursor: pointer; }
.auth-eye:hover { background: #eef6f1; }
.auth-eye:focus-visible { outline: 3px solid #278460; outline-offset: 1px; }
.auth-hint { margin: 6px 0 0; font-size: 0.8rem; color: #64748b; }
.auth-error { margin: 6px 0 0; font-size: 0.8rem; color: #b91c1c; }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.auth-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9rem; cursor: pointer; }
.auth-check-input { width: 20px; height: 20px; accent-color: #278460; }
.auth-link { color: #278460; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.auth-link:hover { color: #10534D; text-decoration: underline; }
.auth-link:focus-visible, .auth-check-input:focus-visible { outline: 3px solid #278460; outline-offset: 2px; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 20px; box-sizing: border-box;
    border: 0; border-radius: 10px; font-size: 1rem; font-weight: 700; color: #ffffff; text-decoration: none; cursor: pointer;
    background: linear-gradient(135deg, #278460, #10534D); box-shadow: 0 10px 24px rgba(39, 132, 96, 0.28); transition: transform 0.15s, box-shadow 0.2s, filter 0.2s; }
.auth-submit:hover { filter: brightness(1.06); box-shadow: 0 14px 30px rgba(39, 132, 96, 0.35); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 3px solid #06272B; outline-offset: 3px; }
.auth-submit[disabled] { opacity: 0.7; cursor: progress; }
.auth-note { margin: 2px 0 0; font-size: 0.78rem; line-height: 1.5; color: #64748b; }
.auth-back { margin-top: 18px; text-align: center; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; line-height: 1.5; }
.auth-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert-ok { background: #eef6f1; color: #10534D; border: 1px solid #cfe5d6; }
.auth-done-mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%;
    color: #ffffff; background: #278460; box-shadow: 0 10px 24px rgba(39, 132, 96, 0.35); animation: auth-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }

/* Security check */
.auth-captcha { margin: 0; padding: 14px; border: 1px solid #cfe5d6; border-radius: 12px; background: #f6fbf8; }
.auth-captcha-title { padding: 0 6px; font-size: 0.9rem; font-weight: 700; color: #10534D; }
.auth-captcha-prompt { margin: 4px 0 10px; font-size: 0.9rem; color: #06272B; }
.auth-captcha .auth-label { display: block; }
.auth-captcha-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.auth-captcha-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.auth-captcha-strip, .auth-captcha-sum { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #d3e5d9; }
.auth-tile { position: relative; display: block; cursor: pointer; border-radius: 10px; }
.auth-tile-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-tile-img { display: block; width: 100%; height: auto; border: 2px solid #d3e5d9; border-radius: 10px; transition: border-color 0.15s, transform 0.15s; }
.auth-tile:hover .auth-tile-img { border-color: #8ABF98; }
.auth-tile-input:checked + .auth-tile-img { border-color: #278460; box-shadow: 0 0 0 3px rgba(39, 132, 96, 0.3); transform: scale(0.96); }
.auth-tile-input:focus-visible + .auth-tile-img { outline: 3px solid #06272B; outline-offset: 2px; }
.auth-tile-check { position: absolute; top: 6px; right: 6px; display: none; width: 22px; height: 22px; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 12px; color: #ffffff; background: #278460; }
.auth-tile-input:checked ~ .auth-tile-check { display: inline-flex; }
.auth-captcha-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.auth-link-button { min-height: 40px; padding: 0; border: 0; background: none; color: #278460; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.auth-link-button:hover { text-decoration: underline; }
.auth-link-button:focus-visible { outline: 3px solid #278460; outline-offset: 2px; }

@keyframes auth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes auth-pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes auth-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .auth-hero-image, .auth-hero-glow, .auth-panel, .auth-done-mark { animation: none; }
    .auth-input, .auth-submit, .auth-tile-img { transition: none; }
}
