/**
 * WhiteGen228 - Auth Pages Styles
 */

.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-body);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

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

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

.auth-form .form-label a {
    font-size: 12px;
    color: var(--accent-light);
}

.auth-form .form-input {
    padding: 14px 16px;
    font-size: 15px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 46px;
}

.input-icon-wrapper .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.5;
}

.input-icon-wrapper .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.input-icon-wrapper .toggle-password:hover {
    color: var(--text-secondary);
}

.auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 16px;
}

.auth-social {
    display: flex;
    gap: 12px;
}

.auth-social .btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.auth-social .btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-light);
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--accent);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-wrapper span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-wrapper a {
    color: var(--accent-light);
}

/* Password strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0;
}

.strength-bar-fill.weak { width: 33%; background: var(--error); }
.strength-bar-fill.medium { width: 66%; background: var(--warning); }
.strength-bar-fill.strong { width: 100%; background: var(--success); }

.strength-text {
    font-size: 11px;
    color: var(--text-muted);
}

.strength-text.weak { color: var(--error); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* Referral badge */
.referral-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--success-bg);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.referral-badge .icon {
    font-size: 24px;
}

.referral-badge .text {
    font-size: 13px;
    color: var(--success);
}

.referral-badge .text strong {
    display: block;
    font-size: 14px;
}

/* Alert in auth */
.auth-alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert.error {
    background: var(--error-bg);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--error);
}

.auth-alert.success {
    background: var(--success-bg);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--success);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-social {
        flex-direction: column;
    }
}
