/* =========================================================
   Auth — shared style (login, register, forgot, reset, verify)
   Tone: brand soft gradient, white card, coral CTA, sky links
   ========================================================= */
.vs-auth {
    min-height: 100vh;
    padding: 7rem 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(60% 50% at 12% 18%, rgba(91, 191, 230, 0.16) 0%, transparent 60%),
        radial-gradient(55% 50% at 92% 88%, rgba(255, 107, 107, 0.14) 0%, transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F6F8 100%);
    font-family: var(--vs-font-body, 'Be Vietnam Pro', system-ui, sans-serif);
    color: var(--vs-text-primary, #212B36);
    position: relative;
    overflow: hidden;
}
.vs-auth::before,
.vs-auth::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.vs-auth::before {
    top: -180px; left: -180px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(245, 200, 74, 0.18) 0%, transparent 70%);
}
.vs-auth::after {
    bottom: -200px; right: -160px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(91, 191, 230, 0.16) 0%, transparent 70%);
}

/* ----- Card ----- */
.vs-auth__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--vs-border, #DFE3E8);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 30px 60px -20px rgba(30, 63, 142, 0.18),
        0 12px 30px -10px rgba(30, 63, 142, 0.08);
    animation: vsAuthFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.vs-auth__card--wide { max-width: 560px; }

@keyframes vsAuthFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- Brand block on top ----- */
.vs-auth__brand {
    text-align: center;
    margin-bottom: 1.5rem;
}
.vs-auth__brand img {
    height: 48px;
    width: auto;
    /* Logo đứng riêng 1 dòng, căn giữa — tránh nằm chung dòng inline với eyebrow */
    display: block;
    margin: 0 auto 0.65rem;
}
.vs-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: rgba(91, 191, 230, 0.14);
    color: var(--vs-secondary-dark, #3FA3CC);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 0.75rem;
}
.vs-auth__eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--vs-secondary-dark, #3FA3CC);
    animation: vsDotPulse 1.6s ease-in-out infinite;
}
@keyframes vsDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

.vs-auth__title {
    font-family: var(--vs-font-display, 'Quicksand', sans-serif);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--vs-navy, #1E3F8E);
    margin: 0 0 0.4rem;
    line-height: 1.25;
    text-align: center;
}
.vs-auth__subtitle {
    text-align: center;
    color: var(--vs-text-secondary, #454F5B);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}
.vs-auth__subtitle a {
    color: var(--vs-primary, #1E3F8E);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.vs-auth__subtitle a:hover { color: var(--vs-primary-dark, #16307A); text-decoration: underline; }

/* ----- Form fields ----- */
.vs-auth__form { display: flex; flex-direction: column; gap: 1rem; }
.vs-auth__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.vs-auth__field { display: flex; flex-direction: column; gap: 0.4rem; }
.vs-auth__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vs-navy, #1E3F8E);
    letter-spacing: 0.1px;
}
.vs-auth__input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--vs-border, #DFE3E8);
    border-radius: 12px;
    background: #fff;
    color: var(--vs-text-primary, #212B36);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}
.vs-auth__input::placeholder { color: var(--vs-text-muted, #919EAB); }
.vs-auth__input:hover { border-color: var(--vs-secondary, #5BBFE6); }
.vs-auth__input:focus {
    border-color: var(--vs-primary, #1E3F8E);
    box-shadow: 0 0 0 4px rgba(95, 175, 224, 0.28);
    background: #fff;
}

/* ----- Misc rows ----- */
.vs-auth__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    margin: -0.25rem 0 0.5rem;
}
.vs-auth__check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--vs-text-secondary, #454F5B);
    user-select: none;
}
.vs-auth__check input {
    width: 16px; height: 16px;
    accent-color: var(--vs-primary, #1E3F8E);
    cursor: pointer;
}
.vs-auth__link {
    color: var(--vs-secondary-dark, #3FA3CC);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.vs-auth__link:hover { color: var(--vs-primary, #1E3F8E); text-decoration: underline; }

/* ----- CTA ----- */
.vs-auth__cta {
    margin-top: 0.5rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.5rem;
    background: var(--vs-primary, #1E3F8E);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(30, 63, 142, 0.28);
}
.vs-auth__cta:hover {
    background: var(--vs-primary-dark, #16307A);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(30, 63, 142, 0.36);
}
.vs-auth__cta:active { transform: translateY(0); }

/* ----- Divider with hint ----- */
.vs-auth__hint {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--vs-text-secondary, #454F5B);
}
.vs-auth__hint a {
    color: var(--vs-secondary-dark, #3FA3CC);
    font-weight: 600;
    text-decoration: none;
}
.vs-auth__hint a:hover { color: var(--vs-primary, #1E3F8E); text-decoration: underline; }

/* ----- Verify code input ----- */
.vs-auth__code {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.55em;
    padding-left: 1.5rem; /* compensate letter-spacing */
    font-family: var(--vs-font-display, 'Quicksand', sans-serif);
    color: var(--vs-navy, #1E3F8E);
}

/* ----- Email highlight in verify ----- */
.vs-auth__email-tag {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--vs-primary-light, #EAF3FB);
    color: var(--vs-primary, #1E3F8E);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ----- Footer of card: tagline tiny ----- */
.vs-auth__foot {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--vs-border, #DFE3E8);
    text-align: center;
    font-size: 0.78rem;
    color: var(--vs-text-muted, #919EAB);
}
.vs-auth__foot strong { color: var(--vs-navy, #1E3F8E); }

/* ----- Flatpickr (register) ----- */
.flatpickr-input.vs-auth__input { background: #fff !important; }

/* ----- Responsive ----- */
@media (max-width: 560px) {
    .vs-auth { padding: 6rem 0.75rem 2rem; }
    .vs-auth__card { padding: 2rem 1.25rem; border-radius: 20px; }
    .vs-auth__row { grid-template-columns: 1fr; }
    .vs-auth__title { font-size: 1.4rem; }
}
