/* ─── Auth Page Styles ─────────────────────────────────────────── */

.auth-wrap {
    max-width: 480px;
    margin: 0 auto 4rem auto;
    padding: 0 var(--container-padding);
}

.auth-card {
    background: #0F0F11;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-dark);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-dark);
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-base);
}

.auth-tab:hover {
    color: var(--text-on-dark);
}

.auth-tab.active {
    color: var(--text-on-dark);
    border-bottom: 2px solid var(--accent);
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: var(--fs-small);
    color: var(--text-on-dark);
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    background: #1A1A1C;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.875rem 1rem 0.875rem 3rem; /* padding left to accommodate icon */
    transition: var(--transition-base);
    outline: none;
}

.input-with-icon input:focus {
    border-color: var(--accent);
}

/* Password Toggle */
.password-group .btn-toggle-password {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-group .btn-toggle-password:hover {
    color: var(--text-on-dark);
}

.password-group input {
    padding-right: 3rem; /* padding right to accommodate eye icon */
}

/* Radio buttons for segment */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent);
}

.radio-label:has(input[type="radio"]:checked) {
    color: var(--text-on-dark);
}

/* Checkbox */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-weight: normal;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 1rem;
    height: 1rem;
}

/* Errors */
.form-error {
    color: #ff5b5b;
    font-size: var(--fs-small);
    margin-top: 0.25rem;
}

.form-error.banner {
    background: rgba(255, 91, 91, 0.1);
    border: 1px solid rgba(255, 91, 91, 0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Submit button */
.auth-submit {
    margin-top: 1rem;
    width: 100%;
}

/* Account Dashboard */
.account-dashboard {
    padding-bottom: var(--space-2xl);
}

.account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.account-card .bento-card__icon {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-card .bento-card__title {
    font-size: 1.25rem;
    margin: 0;
}

.account-card .bento-card__desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.badge-placeholder {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.account-actions {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
}

/* Mobile-first adjustments */
@media (min-width: 768px) {
    .auth-wrap {
        margin-bottom: 6rem;
    }
    .auth-card {
        padding: 32px;
    }
}
