/* ==========================================
   TrendOdeme - Auth Pages (Login, Register, Forgot Password)
   ========================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation: float 8s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.08) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: float 8s ease-in-out infinite reverse;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-logo .brand-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 0 25px var(--accent-glow);
}

.auth-logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.auth-card .form-control {
    padding: 14px 16px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.auth-card .input-group .form-control {
    padding-left: 44px;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.auth-actions a {
    color: var(--accent-primary);
    font-weight: 500;
}

.auth-actions a:hover {
    text-decoration: underline;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-strength {
    height: 4px;
    background: var(--bg-glass);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength .bar {
    height: 100%;
    border-radius: 2px;
    transition: var(--transition-normal);
    width: 0;
}

.password-strength .bar.weak {
    width: 33%;
    background: var(--danger);
}

.password-strength .bar.medium {
    width: 66%;
    background: var(--warning);
}

.password-strength .bar.strong {
    width: 100%;
    background: var(--success);
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terms-check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
}

.terms-check a {
    color: var(--accent-primary);
}

/* Success state */
.auth-success {
    text-align: center;
    padding: 20px 0;
}

.auth-success .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.auth-success h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.auth-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
}