/**
 * Auth Styles — Login, Register, Forgot/Reset Password
 *
 * @package Smokeboxx
 */

.sb-auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.sb-auth-container {
    width: 100%;
    max-width: 420px;
}

.sb-auth-card {
    background: var(--sb-dark);
    border: 3px solid var(--sb-orange);
    padding: 0;
}

/* Tabs */
.sb-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--sb-light-gray);
}

.sb-auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    color: var(--sb-gray);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.15s;
}

.sb-auth-tab.active {
    color: var(--sb-white);
    border-bottom: 3px solid var(--sb-orange);
}

/* Forms */
.sb-auth-form {
    padding: 32px;
}

.sb-form-group {
    margin-bottom: 20px;
}

.sb-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sb-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sb-gray);
    cursor: pointer;
}

.sb-checkbox input {
    accent-color: var(--sb-orange);
}

.sb-forgot-link {
    font-size: 13px;
    color: var(--sb-orange);
    text-decoration: none;
    transition: color 0.2s;
}

.sb-forgot-link:hover {
    color: var(--sb-orange-dark);
}

.sb-auth-submit {
    width: 100%;
    text-align: center;
}

.sb-auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--sb-error);
    color: var(--sb-error);
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .sb-auth-form {
        padding: 24px 20px;
    }

    .sb-auth-tab {
        font-size: 11px;
        padding: 14px 12px;
    }
}

/* ==========================================================================
   Forgot Password / Reset Password
   ========================================================================== */

/* Card variant — rounded corners for forgot/reset pages */
.sb-auth-card--forgot,
.sb-auth-card--reset {
    border-radius: 16px;
    padding: 40px;
    background: var(--sb-surface);
    border: none;
}

/* Auth Header — centered block with icon */
.sb-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.sb-auth-icon {
    width: 64px;
    height: 64px;
    background: var(--sb-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sb-auth-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--sb-orange);
}

.sb-auth-icon--error svg {
    stroke: var(--sb-error);
}

.sb-auth-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--sb-white);
    margin-bottom: 8px;
}

.sb-auth-subtitle {
    color: var(--sb-gray);
    font-size: 14px;
    line-height: 1.5;
}

/* Forgot/Reset form layout */
.sb-auth-form-forgot,
.sb-auth-form-reset {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Success State */
.sb-success-state {
    display: none;
    text-align: center;
}

.sb-success-state.show {
    display: block;
}

.sb-success-icon {
    width: 72px;
    height: 72px;
    background: var(--sb-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: sbScaleIn 0.4s ease;
}

@keyframes sbScaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.sb-success-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--sb-white);
}

.sb-success-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--sb-white);
    margin-bottom: 12px;
}

.sb-success-text {
    color: var(--sb-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.sb-success-email {
    color: var(--sb-white);
    font-weight: 600;
}

.sb-success-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--sb-orange);
    color: var(--sb-white);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.sb-success-btn:hover {
    background: var(--sb-orange-dark);
    color: var(--sb-white);
}

/* Back Link */
.sb-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--sb-gray);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.sb-back-link:hover {
    color: var(--sb-white);
}

.sb-back-link svg {
    width: 18px;
    height: 18px;
}

/* Resend */
.sb-resend-text {
    color: var(--sb-gray);
    font-size: 13px;
}

.sb-resend-link {
    color: var(--sb-orange);
    text-decoration: none;
    font-weight: 600;
}

.sb-resend-link:hover {
    text-decoration: underline;
}

/* Password Requirements */
.sb-password-requirements {
    background: var(--sb-dark);
    border-radius: 8px;
    padding: 16px;
}

.sb-requirements-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--sb-gray);
    margin-bottom: 8px;
}

.sb-requirement:last-child {
    margin-bottom: 0;
}

.sb-requirement svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sb-requirement.valid {
    color: var(--sb-success);
}

.sb-requirement.valid svg {
    stroke: var(--sb-success);
}

/* Form error (inline field-level) */
.sb-form-error {
    color: var(--sb-error);
    font-size: 12px;
    display: none;
    margin-top: 4px;
}

.sb-form-error.show {
    display: block;
}

/* Input error border */
.sb-input.sb-input-error {
    border-color: var(--sb-error);
}

/* Reset form hide helper */
.sb-reset-form.hide {
    display: none;
}

/* Responsive — Forgot / Reset Password */
@media (max-width: 480px) {
    .sb-auth-card--forgot,
    .sb-auth-card--reset {
        padding: 24px;
        border-radius: 12px;
    }

    .sb-auth-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .sb-auth-icon svg {
        width: 24px;
        height: 24px;
    }

    .sb-auth-title {
        font-size: 22px;
    }

    .sb-auth-subtitle {
        font-size: 13px;
    }

    .sb-auth-header {
        margin-bottom: 24px;
    }

    .sb-auth-form-reset {
        gap: 16px;
    }

    .sb-password-requirements {
        padding: 14px;
    }

    .sb-requirement {
        font-size: 12px;
    }

    .sb-success-icon {
        width: 64px;
        height: 64px;
    }

    .sb-success-icon svg {
        width: 30px;
        height: 30px;
    }

    .sb-success-title {
        font-size: 20px;
    }

    .sb-success-btn {
        padding: 12px 28px;
        font-size: 13px;
    }
}
