/* signup.css – Unified Editorial Bento Update */

.signup-page .footer {
    display: none;
}

.auth-viewport {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(100px, 12vh, 120px) clamp(24px, 5vw, 64px) 40px;
    background: var(--cream);
    overflow: hidden;
}

.outdoor-icon-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    padding: 60px;
    pointer-events: none;
    align-items: center;
    justify-items: center;
    font-size: clamp(40px, 6vw, 64px);
}

.auth-bento {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    min-height: 650px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 0px 32px rgba(26, 58, 32, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: bentoReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bentoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Left: Solid Forest Panel ── */
.auth-bento__visual {
    background: var(--forest);
    padding: clamp(40px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: #fdfbf7;
}

.brand-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    font-size: 48px;
    font-weight: 600;
    color: #fdfbf7;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-top: auto;
    margin-bottom: auto;
}

.brand-badge img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.auth-bento__visual h1 {
    position: relative;
    z-index: 2;
    font-family: var(--display);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: #fdfbf7;
}

.auth-bento__visual h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.auth-bento__visual p {
    position: relative;
    z-index: 2;
    font-family: var(--body);
    font-size: clamp(14px, 1.5vw, 15px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
}

/* ── Right: Form Panel ── */
.auth-bento__form {
    padding: clamp(40px, 6vw, 64px) clamp(32px, 5vw, 64px);
    overflow-y: auto;
    scrollbar-width: none;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.auth-bento__form::-webkit-scrollbar {
    display: none;
}

.form-step-container {
    margin: auto 0;
}

.step-indicator {
    display: inline-block;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
}

.auth-heading {
    font-family: var(--display);
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.auth-subheading {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-mid);
    margin-bottom: 32px;
    line-height: 1.6;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    font-family: var(--body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-mid);
    margin-bottom: 4px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1.5px solid var(--ink-light);
    background: transparent;
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink);
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group select {
    cursor: pointer;
    appearance: none;
    --webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231C1A16' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px bottom 14px;
    padding-right: 28px;
}

.input-group input:focus,
.input-group select:focus {
    border-bottom-color: var(--forest);
}

.field-error {
    display: block;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    margin-top: 6px;
}

.input-group input.input-invalid {
    border-bottom-color: #dc2626 !important;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .password-toggle {
    position: absolute;
    right: 0;
    bottom: 12px;
    cursor: pointer;
    color: var(--ink-light);
    font-size: 14px;
    transition: color 0.2s;
}

.password-requirements {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-requirements li {
    font-family: var(--body);
    font-size: 12px;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.password-requirements li i {
    font-size: 11px;
    color: #dc2626;
    transition: color 0.2s ease;
}

.password-requirements li.valid {
    color: var(--forest);
}

.password-requirements li.valid i {
    color: var(--forest);
}

.password-wrapper .password-toggle:hover {
    color: var(--forest);
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    height: 4px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.strength-text {
    font-family: var(--body);
    font-size: 9px;
    font-weight: 700;
    color: var(--ink-mid);
    width: 45px;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.strength-bar.weak {
    background: #d9534f;
    width: 33%;
}

.strength-bar.medium {
    background: var(--gold);
    width: 66%;
}

.strength-bar.strong {
    background: var(--forest-light);
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
}

.checkbox-group input {
    margin-top: 2px;
    accent-color: var(--forest);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.6;
    cursor: pointer;
}

.otp-container {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 24px;
    max-width: 360px;
}

.otp-input {
    width: 100%;
    height: 56px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: transparent;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: var(--ink);
    transition: border-color 0.3s ease;
}

.otp-input:focus {
    border-color: var(--forest);
    outline: none;
}

.success-icon-container {
    display: flex;
    justify-content: center;
    margin: 32px 0 48px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--gold);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(196, 154, 60, 0.25);
}

.success-icon i {
    color: #fdfbf7;
    font-size: 28px;
}

.btn-signup {
    width: 100%;
    padding: 16px;
    background: var(--forest);
    color: #fdfbf7;
    border: 1px solid var(--forest);
    border-radius: var(--radius-pill);
    font-family: var(--body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-signup:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--forest);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(196, 154, 60, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-light);
}

.text-link {
    font-weight: 700;
    color: var(--forest);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--gold);
}

.custom-3-col {
    grid-template-columns: 2fr 1fr 2fr;
}

.readonly-input {
    background-color: rgba(28, 26, 22, 0.03) !important;
    color: var(--ink) !important;
    cursor: not-allowed;
    text-align: center;
    border-bottom-style: dashed !important;
}

/* ── Legal Modals ── */
.auth-legal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 12, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.auth-legal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.auth-legal-card {
    background: var(--cream);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(16px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-legal-overlay.show .auth-legal-card {
    transform: translateY(0);
}

.auth-legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--forest);
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    flex-shrink: 0;
}

.auth-legal-header h3 {
    font-family: var(--display);
    font-size: 22px;
    color: #fdfbf7;
    margin: 0;
    font-weight: 600;
}


.auth-legal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 18px;
    color: #fdfbf7;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.auth-legal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.auth-legal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    background: var(--cream);
}

.auth-legal-updated {
    font-size: 12px;
    color: var(--ink-light);
    margin-bottom: 20px;
    font-style: italic;
}

.auth-legal-body h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--forest);
    margin: 20px 0 8px;
}

.auth-legal-body h4:first-of-type {
    margin-top: 0;
}

.auth-legal-body p {
    font-size: 14px;
    color: var(--ink-mid);
    line-height: 1.7;
    margin: 0;
}

.auth-legal-footer {
    padding: 16px 28px 24px;
    flex-shrink: 0;
    border-top: 1px solid rgba(28, 26, 22, 0.1);
    background: var(--cream);
    border-radius: 0 0 20px 20px;
}

.btn-legal-accept {
    width: 100%;
    padding: 13px;
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-legal-accept:hover {
    background: var(--gold);
    color: var(--forest);
}

.otp-input.otp-invalid {
    border-color: #dc2626;
    animation: otpShake 0.4s ease;
}

@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.otp-error {
    margin-top: -12px;
    margin-bottom: 24px;
}

/* ── Mobile Fixes ── */
@media (max-width: 900px) {
    .auth-viewport {
        padding: 100px 16px 40px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .auth-bento {
        grid-template-columns: 1fr;
        height: auto;
        --webkit-min-height: auto;
        border-radius: var(--radius-xl);
        border: 3px solid rgba(28, 26, 22, 0.12);
        box-shadow: 0 16px 40px rgba(26, 58, 32, 0.15);
    }

    .auth-bento__visual {
        min-height: 220px;
        padding: 40px 24px;
    }

    .brand-badge {
        margin-top: 0;
        margin-bottom: auto;
        font-size: 32px;
        gap: 16px;
    }

    .brand-badge img {
        width: 56px;
        height: 56px;
    }

    .auth-bento__visual h1 {
        font-size: 32px;
        margin-top: auto;
        margin-bottom: 12px;
    }

    .auth-bento__visual h1 br {
        display: none;
    }

    .auth-bento__visual h1 em {
        margin-left: 8px;
    }

    .auth-bento__visual p {
        display: block;
        font-size: 13px;
        max-width: 100%;
    }

    .auth-bento__form {
        padding: 32px 24px 64px;
        overflow-y: visible;
    }

    .custom-3-col {
        grid-template-columns: 1fr;
    }

    .readonly-input {
        text-align: left;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .otp-input {
        height: 50px;
        font-size: 20px;
    }

    .forgot-page .auth-viewport {
        align-items: center;
        overflow: hidden;
        min-height: 100vh;
    }

    .forgot-page .auth-bento {
        height: auto;
    }

    .forgot-page .outdoor-icon-pattern {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-viewport {
        padding: 90px 12px 24px;
    }
}