/* Moien! Link Hub - Authentication Pages Stylesheet */
/* This file styles login.php, signup.php, confirm.php, and forgot/reset password pages */
/* Component styles are now in /assets/css/components/ */

/* ===== AUTH PAGE LAYOUT ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--space-8) var(--space-4);
    position: relative;
}

/* Subtle background pattern for visual interest */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--accent) 0%, transparent 50%);
    opacity: 0.03;
    pointer-events: none;
}

.auth-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    width: 100%;
    max-width: 480px;
    box-shadow: 
        0 10px 25px -5px var(--shadow),
        0 20px 40px -10px var(--shadow-lg);
    position: relative;
    backdrop-filter: blur(10px);
}

/* Glassmorphism effect for modern look */
[data-theme="dark"] .auth-container,
[data-theme="system"].system-dark .auth-container {
    background: var(--bg-primary);
    border-color: var(--border);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

/* ===== AUTH FORMS ===== */
.auth-form {
    width: 100%;
}

/* Auth form styles moved to /assets/css/components/forms.css */

.auth-form input {
    font-size: 1rem;
    padding: var(--space-4);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    height: 52px;
}

.auth-form input:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px var(--bg-hover);
}

.auth-form input:hover:not(:focus) {
    border-color: var(--border-light);
    background: var(--bg-primary);
}

/* Form button styles moved to /assets/css/components/buttons.css */

/* ===== FORM FOOTER LINKS ===== */
.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-text);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--primary-text-hover);
    text-decoration: underline;
}

.forgot-link {
    display: inline-block;
    color: var(--primary-text);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--primary-text-hover);
    text-decoration: underline;
}

/* ===== EMAIL CONFIRMATION PAGE ===== */
.confirmation-success {
    text-align: center;
    padding: var(--space-8);
}

.confirmation-success .alert {
    border: none;
    box-shadow: 0 4px 12px var(--shadow);
}

.confirmation-success h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}


/* Form group animation moved to /assets/css/components/forms.css */

@keyframes slideInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-container {
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FORM PROGRESS INDICATOR ===== */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    padding: 0 var(--space-4);
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.progress-step.active {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.completed {
    color: var(--success);
}

.progress-step::before {
    content: '';
    position: absolute;
    top: -var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--bg-primary);
}

.progress-step.active::before {
    border-color: var(--primary);
    background: var(--primary);
}

.progress-step.completed::before {
    border-color: var(--success);
    background: var(--success);
}

/* ===== SOCIAL LOGIN BUTTONS (for future use) ===== */
.social-login {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.social-login-title {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

.social-login-title::before,
.social-login-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border);
}

.social-login-title::before {
    left: 0;
}

.social-login-title::after {
    right: 0;
}

/* ===== AUTH PAGE SPECIFIC LAYOUTS ===== */

/* Reset password page specific */
.reset-password-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.reset-password-header h1 {
    margin-bottom: var(--space-4);
}

/* Forgot password page specific */
.forgot-password-intro {
    text-align: center;
    margin-bottom: var(--space-6);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.help-links {
    margin-top: var(--space-8);
}

.additional-info {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.additional-info p {
    margin-bottom: var(--space-2);
}

/* Confirmation page specific */
.confirmation-success,
.confirmation-error {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-header,
.error-header {
    margin-bottom: var(--space-6);
}

.welcome-message {
    margin-bottom: var(--space-8);
}

.welcome-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.confirmation-details {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.next-steps {
    margin-bottom: var(--space-8);
    text-align: left;
}

.next-steps h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-size: 1.3rem;
}

.error-content {
    margin-bottom: var(--space-6);
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.help-options h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: 1.2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 640px) {
    .auth-page {
        padding: var(--space-3);
        align-items: flex-start;
        padding-top: var(--space-8);
    }
    
    .auth-container {
        padding: var(--space-6);
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    .auth-container h1 {
        font-size: 1.75rem;
        margin-bottom: var(--space-6);
    }
    
    .auth-form input {
        height: 48px;
        padding: var(--space-3);
    }
    
    /* Auth form button styles moved to /assets/css/components/buttons.css */
}

@media (max-width: 480px) {
    .auth-container {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .auth-container h1 {
        font-size: 1.5rem;
    }
    
    .form-progress {
        padding: 0;
        margin-bottom: var(--space-6);
    }
    
    .progress-step {
        font-size: 0.8rem;
    }
    
    .progress-step::before {
        width: 28px;
        height: 28px;
        top: -var(--space-5);
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    .auth-form input {
        border-width: 2px;
    }
    
    .auth-form input:focus {
        border-width: 3px;
    }
    
    /* High contrast button styles moved to /assets/css/components/buttons.css */
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    .auth-container,
    .auth-form input {
        animation: none;
    }
    /* Form group and button reduced motion styles moved to respective component CSS files */
}