/* =========================================
   Auth page layout
   This layout prevents the footer from being
   pulled into the same row as the auth card.
   ========================================= */

.auth-page {
    min-height: auto;
    background: transparent;
}

.auth-section {
    padding: 56px 0 72px;
}

.auth-shell {
    display: block;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(120, 98, 44, 0.12);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(163, 134, 41, 0.10);
}

.auth-back {
    margin-bottom: 18px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--text-soft);
    font-weight: 700;
    text-decoration: none;
}

.auth-back-link:hover,
.auth-back-link:focus {
    color: var(--text-main);
}

.auth-header {
    margin-bottom: 22px;
    text-align: center;
}

.auth-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.auth-intro {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(120, 98, 44, 0.12);
}

.auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-tab:hover,
.auth-tab:focus {
    background: rgba(250, 208, 44, 0.10);
    color: var(--text-main);
    transform: translateY(-1px);
}

.auth-tab.is-active {
    background: var(--brand-yellow-soft);
    color: var(--text-main);
    border: 1px solid rgba(120, 98, 44, 0.10);
}

.auth-panel h2 {
    margin: 0 0 18px;
    font-size: 1.8rem;
    line-height: 1.2;
}

.auth-form {
    display: block;
}

.auth-field + .auth-field {
    margin-top: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(120, 98, 44, 0.16);
    border-radius: 16px;
    background: #fffdfa;
    color: var(--text-main);
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input:focus {
    border-color: rgba(246, 206, 40, 0.9);
    box-shadow: 0 0 0 4px rgba(246, 206, 40, 0.14);
    background: #ffffff;
}

.auth-recaptcha {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.auth-actions {
    margin-top: 22px;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    font-size: 1rem;
}

.auth-helper {
    margin: 16px 0 0;
    color: var(--text-light);
    text-align: center;
}

.auth-helper a {
    color: var(--text-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.auth-helper a:hover,
.auth-helper a:focus {
    color: var(--text-main);
}

/* Force the global footer to stay below the auth page */
.hs-site-footer {
    clear: both;
    width: 100%;
    display: block;
    position: relative;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .auth-section {
        padding: 40px 0 56px;
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .auth-header {
        text-align: left;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-tabs {
        gap: 8px;
    }
}
