/* ==========================================================================
   AUTH SCREENS & LIFECYCLE EXTENSIONS
   Modular styling for all 12 authentication lifecycle screens:
   SignIn, SignUp, VerifyOTC, VerifyEmail, ForgotPassword, ResetPassword,
   PasswordResetSuccess, Waitlist, AccessDenied, AccountSuspended,
   OAuthError, AccountSetup
   ========================================================================== */

/* Shared Form Controls & Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label-row label,
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-link {
    font-size: 13px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.form-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 161, 132, 0.18);
}

/* Password Toggle Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

/* OAuth Section */
.oauth-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: var(--bg-primary);
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: lowercase;
}

/* Status Badges & Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.status-pill.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.success {
    background: rgba(0, 161, 132, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 161, 132, 0.3);
}

/* OTP Digits Row */
.otp-inputs-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit-input {
    width: 44px;
    height: 52px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.otp-digit-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 161, 132, 0.25);
    background: var(--bg-secondary);
}

/* Card Box */
.auth-card-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
