
/* ==========================================================================
   CUBA HEALTH ASSIST — AUTH STATIC STYLES (vanilla CSS, no framework)
   Token-driven via variables.css. Brand teal locked at #0E7C7B.
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
html { font-family: var(--font-primary); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
    background: var(--color-white);
    color: var(--color-gray-900);
    font-size: var(--fs-base);
    line-height: 1.6;
    letter-spacing: -0.005em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.container-page {
    width: 100%;
    margin-inline: auto;
    padding-inline: 16px;
    max-width: 1280px;
}
@media (min-width: 768px)  { .container-page { padding-inline: 24px; } }
@media (min-width: 1024px) { .container-page { padding-inline: 32px; } }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   01 — Top trust strip (teal bar above nav)
   ========================================================================== */
.top-strip {
    background: var(--color-teal-700);
    color: rgba(255,255,255,0.92);
    font-size: var(--fs-xs);
    font-weight: 500;
}
.top-strip__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 8px 0; min-height: 36px; flex-wrap: wrap;
}
.top-strip__group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top-strip__item { display: inline-flex; align-items: center; gap: 6px; }
.top-strip__item svg { width: 14px; height: 14px; opacity: 0.9; }
.top-strip__sep { opacity: 0.4; }

/* ==========================================================================
   02 — Site nav
   ========================================================================== */
.site-nav {
    position: sticky; top: 0; z-index: 80;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}
.site-nav__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; height: 72px;
}
.site-nav__logo img { height: 36px; width: auto; }
.site-nav__links {
    display: none; align-items: center; gap: 28px;
    margin-inline: auto;
}
@media (min-width: 1024px) { .site-nav__links { display: flex; } }
.site-nav__links a {
    font-size: 13.5px; font-weight: 500; color: rgba(30,41,59,0.75);
    transition: color 0.2s ease;
}
.site-nav__links a:hover { color: var(--color-gray-900); }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-pill {
    height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; gap: 4px;
    border-radius: 9999px; border: 1px solid var(--color-gray-200);
    background: var(--color-white); color: rgba(30,41,59,0.85);
    font-size: 13px; font-weight: 600;
    transition: var(--transition-smooth);
}
.lang-pill:hover { border-color: rgba(14,124,123,0.4); background: var(--color-teal-50); }
.lang-pill svg { width: 14px; height: 14px; }
.nav-signin {
    display: none; height: 36px; padding: 0 14px;
    align-items: center;
    font-size: 13.5px; font-weight: 500;
    color: rgba(30,41,59,0.7);
    transition: color 0.2s ease;
}
@media (min-width: 1024px) { .nav-signin { display: inline-flex; } }
.nav-signin:hover { color: var(--color-gray-900); }
.btn-primary-nav {
    display: none; height: 44px; padding: 0 20px;
    align-items: center; gap: 6px;
    border-radius: 9999px;
    background: var(--color-teal-600); color: var(--color-white);
    font-size: 13.5px; font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    white-space: nowrap;
}
@media (min-width: 768px) { .btn-primary-nav { display: inline-flex; } }
.btn-primary-nav:hover { background: var(--color-teal-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary-nav svg { width: 15px; height: 15px; }
.nav-mobile-toggle {
    height: 44px; width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9999px; border: 1px solid var(--color-gray-200);
    background: var(--color-white); color: var(--color-gray-900);
}
@media (min-width: 1024px) { .nav-mobile-toggle { display: none; } }

/* ==========================================================================
   03 — Auth background (soft teal mesh + grid)
   ========================================================================== */
.auth-shell { flex: 1; position: relative; display: flex; flex-direction: column; }
.auth-bg {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(120% 80% at 15% 10%, var(--color-teal-50) 0%, transparent 55%),
        radial-gradient(100% 70% at 90% 100%, rgba(42,168,166,0.25) 0%, transparent 60%),
        linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}
.auth-bg__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(30,41,59,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30,41,59,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
}
.auth-bg__orb {
    position: absolute; border-radius: 9999px; filter: blur(80px); opacity: 0.4;
}
.auth-bg__orb--a { top: -160px; left: -120px; width: 420px; height: 420px;
    background: radial-gradient(circle, var(--color-teal-400) 0%, transparent 70%); }
.auth-bg__orb--b { bottom: -190px; right: -120px; width: 520px; height: 520px;
    background: radial-gradient(circle, var(--color-teal-600) 0%, transparent 70%); }
.auth-bg__pulse {
    position: absolute; bottom: 16%; right: 12%; opacity: 0.15;
    color: var(--color-teal-600);
}

.auth-stage {
    position: relative; z-index: 1;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 16px;
}
@media (min-width: 768px) { .auth-stage { padding: 64px 24px; } }
@media (min-width: 1024px) { .auth-stage { padding: 80px 32px; } }

/* ==========================================================================
   04 — Auth card
   ========================================================================== */
.auth-card {
    width: 100%; max-width: 520px;
    background: var(--color-white);
    border: 1px solid rgba(226,232,240,0.7);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
@media (min-width: 640px) { .auth-card { padding: 40px; } }
@media (min-width: 1024px) { .auth-card { padding: 48px; } }
.auth-card--wide { max-width: 640px; }

/* ==========================================================================
   05 — Brand header (inside card)
   ========================================================================== */
.brand-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 28px;
}
.brand-header__logo img { height: 32px; width: auto; }
.brand-pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 10px;
    border-radius: 9999px;
    background: var(--color-teal-50);
    border: 1px solid rgba(14,124,123,0.15);
    color: var(--color-teal-600);
    font-size: 11px; font-weight: 600;
}
.brand-pill svg { width: 14px; height: 14px; }

/* ==========================================================================
   06 — Auth header (title + description)
   ========================================================================== */
.auth-header { margin-bottom: 28px; }
.auth-header__title {
    font-size: 26px; font-weight: 600;
    letter-spacing: -0.02em; line-height: 1.15;
    color: var(--color-gray-900);
}
@media (min-width: 640px) { .auth-header__title { font-size: 28px; } }
.auth-header__desc {
    margin-top: 8px;
    font-size: 14px; color: var(--color-gray-500);
    line-height: 1.6;
}

/* ==========================================================================
   09 — Auth field (input)
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
    font-size: 12.5px; font-weight: 500;
    color: rgba(30,41,59,0.85);
}
.field__label .req { color: rgba(220,38,38,0.8); margin-left: 2px; }
.field__wrap { position: relative; }
.field__icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-500);
    pointer-events: none;
}
.field__icon svg { width: 16px; height: 16px; }
.field__input,
.field__select {
    width: 100%; height: 44px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    font-size: 14px; color: var(--color-gray-900);
    padding-left: 14px; padding-right: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.field--icon .field__input,
.field--icon .field__select { padding-left: 40px; }
.field--trailing .field__input { padding-right: 44px; }
.field__input::placeholder { color: rgba(100,116,139,0.7); }
.field__input:focus,
.field__select:focus {
    border-color: var(--color-teal-600);
    box-shadow: 0 0 0 4px rgba(14,124,123,0.1);
}
.field--error .field__input,
.field--error .field__select {
    border-color: rgba(220,38,38,0.6);
}
.field--error .field__input:focus { box-shadow: 0 0 0 4px rgba(220,38,38,0.1); }
.field__hint { font-size: 12px; color: var(--color-gray-500); }
.field__error { font-size: 12px; color: #DC2626; }

/* ==========================================================================
   10 — Password field (eye toggle)
   ========================================================================== */
.field__trailing {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
}
.eye-btn {
    height: 32px; width: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px;
    color: var(--color-gray-500);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.eye-btn:hover { color: var(--color-gray-900); background: var(--color-gray-50); }
.eye-btn svg { width: 16px; height: 16px; }

/* ==========================================================================
   11 — Country select
   ========================================================================== */
.field__select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 38px; cursor: pointer; }
.field--select .field__chevron {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--color-gray-500); pointer-events: none;
}
.field--select .field__chevron svg { width: 16px; height: 16px; }

/* Row grid for paired fields */
.field-row {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Remember row / Forgot link
   ========================================================================== */
.row-between {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 4px;
}
.checkbox-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: rgba(30,41,59,0.75);
    user-select: none; cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--color-teal-600);
    border-radius: 4px;
}
.link-primary {
    font-size: 12.5px; font-weight: 500;
    color: var(--color-teal-600);
    transition: opacity 0.2s ease;
}
.link-primary:hover { text-decoration: underline; }

.consent {
    display: flex; align-items: flex-start; gap: 10px;
    padding-top: 4px;
    font-size: 12.5px; line-height: 1.6;
    color: rgba(30,41,59,0.75);
    cursor: pointer;
}
.consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px; height: 16px;
    accent-color: var(--color-teal-600);
}
.consent a { color: var(--color-teal-600); font-weight: 500; }
.consent a:hover { text-decoration: underline; }

/* ==========================================================================
   12 — Submit button
   ========================================================================== */
.btn-submit {
    width: 100%; height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-teal-600) 0%, var(--color-teal-400) 100%);
    color: var(--color-white);
    font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.btn-submit:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn-submit:hover svg { transform: translateX(2px); }

/* ==========================================================================
   Password meter / requirements
   ========================================================================== */
.pw-panel {
    margin-top: 8px;
    background: var(--color-gray-50);
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: 10px;
    padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.pw-meter { display: flex; gap: 6px; }
.pw-meter span {
    height: 4px; flex: 1;
    border-radius: 9999px;
    background: var(--color-gray-200);
    transition: background 0.3s ease;
}
.pw-meter--1 span:nth-child(-n+1) { background: #DC2626; }
.pw-meter--2 span:nth-child(-n+2) { background: #F59E0B; }
.pw-meter--3 span:nth-child(-n+3) { background: var(--color-teal-600); }
.pw-meter--4 span:nth-child(-n+4) { background: var(--color-success); }
.pw-meter__label { font-size: 11.5px; color: var(--color-gray-500); }
.pw-meter__label strong { color: rgba(30,41,59,0.85); font-weight: 600; }
.pw-rules {
    display: grid; grid-template-columns: 1fr;
    gap: 6px 12px;
    list-style: none;
}
@media (min-width: 640px) { .pw-rules { grid-template-columns: 1fr 1fr; } }
.pw-rules li {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px;
    color: var(--color-gray-500);
}
.pw-rules .dot {
    width: 16px; height: 16px;
    display: grid; place-items: center;
    border-radius: 9999px;
    background: var(--color-gray-100);
    color: rgba(100,116,139,0.6);
}
.pw-rules .dot svg { width: 10px; height: 10px; stroke-width: 3; }
.pw-rules li.ok { color: rgba(30,41,59,0.8); }
.pw-rules li.ok .dot { background: rgba(22,163,74,0.15); color: var(--color-success); }

/* ==========================================================================
   13 — Divider
   ========================================================================== */
.divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}
.divider::before {
    content: ""; position: absolute; inset: 50% 0 auto 0;
    border-top: 1px solid var(--color-gray-200);
}
.divider span {
    position: relative;
    display: inline-block;
    background: var(--color-white);
    padding: 0 12px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-gray-500);
    font-weight: 500;
}

/* ==========================================================================
   14 — Social auth buttons
   ========================================================================== */
.social-row { display: flex; justify-content: center; gap: 12px; }
.social-btn {
    height: 48px; width: 48px;
    border-radius: 9999px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition-smooth);
}
.social-btn:hover {
    border-color: rgba(14,124,123,0.4);
    background: var(--color-teal-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.social-btn svg { width: 20px; height: 20px; }

/* ==========================================================================
   15 — Footer switch
   ========================================================================== */
.footer-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--color-gray-500);
}
.footer-switch a {
    color: var(--color-teal-600);
    font-weight: 600;
}
.footer-switch a:hover { text-decoration: underline; }

/* ==========================================================================
   16 — Site footer
   ========================================================================== */
.site-footer {
    background: var(--color-teal-800);
    color: rgba(255,255,255,0.85);
    padding: 56px 0 32px;
    margin-top: auto;
}
.site-footer__top {
    display: grid; grid-template-columns: 1fr; gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: center;
}
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; } }
.site-footer__head h3 { font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.site-footer__head p { margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,0.7); }
.site-footer__newsletter {
    display: flex; gap: 8px;
}
.site-footer__newsletter input {
    flex: 1; height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0 14px; font-size: 14px;
    font-family: inherit; outline: none;
}
.site-footer__newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.site-footer__newsletter button {
    height: 44px; padding: 0 18px;
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-teal-700);
    font-weight: 600; font-size: 14px;
}
.site-footer__cta {
    height: 44px; padding: 0 18px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff; font-weight: 600; font-size: 14px;
    transition: var(--transition-smooth);
}
.site-footer__cta:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.site-footer__cols {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    padding-top: 32px;
}
@media (min-width: 768px) { .site-footer__cols { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.site-footer__col h4 {
    color: var(--color-teal-300);
    font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 14px;
}
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__col li a {
    color: rgba(255,255,255,0.75); font-size: 13.5px;
    transition: color 0.2s ease;
}
.site-footer__col li a:hover { color: #fff; }
.site-footer__bottom {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    font-size: 12px; color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   index landing (only used in index.html)
   ========================================================================== */
.landing-hero {
    padding: 80px 0 32px;
    text-align: center;
}
.landing-hero h1 {
    font-size: 40px; font-weight: 700; letter-spacing: -0.025em; color: var(--color-gray-900);
}
.landing-hero p {
    margin-top: 12px; font-size: 16px; color: var(--color-gray-500); max-width: 560px; margin-inline: auto;
}
.landing-cards {
    display: grid; grid-template-columns: 1fr; gap: 24px;
    padding: 32px 0 80px;
    max-width: 880px; margin: 0 auto;
}
@media (min-width: 768px) { .landing-cards { grid-template-columns: 1fr 1fr; } }
.landing-card {
    display: block; padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.landing-card:hover {
    border-color: rgba(14,124,123,0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.landing-card__icon {
    height: 48px; width: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--color-teal-50);
    color: var(--color-teal-600);
    margin-bottom: 18px;
}
.landing-card__icon svg { width: 22px; height: 22px; }
.landing-card h2 { font-size: 20px; font-weight: 600; color: var(--color-gray-900); }
.landing-card p { margin-top: 8px; font-size: 14px; color: var(--color-gray-500); line-height: 1.6; }
.landing-card__arrow { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--color-teal-600); }
