/* Modern Authentication Pages Styles */

:root {
    --auth-primary: #6366f1;
    --auth-secondary: #8b5cf6;
    --auth-bg: #f1f5f9;
    --auth-card-bg: #ffffff;
    --auth-text: #1e293b;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --auth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: auto;
}

html {
    scroll-behavior: auto;
}

body.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: 20px;
    box-shadow: var(--auth-shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-header {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    padding: 1.5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 15s infinite linear;
}

.auth-card-header-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.auth-card-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.auth-card-body {
    padding: 1.5rem 2rem;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-form-control::placeholder {
    color: var(--auth-text-muted);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-card-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--auth-border);
    text-align: center;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: var(--auth-secondary);
    text-decoration: underline;
}

.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.auth-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.auth-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--auth-text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Registration specific styles */
.auth-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.auth-form-help {
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 1rem;
    }
    
    .auth-card-header {
        padding: 2rem 1.5rem;
    }
    
    .auth-card-body {
        padding: 2rem 1.5rem;
    }
    
    .auth-card-footer {
        padding: 1.25rem 1.5rem;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card-title {
        font-size: 1.5rem;
    }
    
    .auth-card-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    body.auth-page {
        padding: 1rem 0.5rem;
    }
    
    .auth-card-header {
        padding: 1.5rem 1rem;
    }
    
    .auth-card-body {
        padding: 1.5rem 1rem;
    }
    
    .auth-card-footer {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-logo {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
    
    .auth-card-title {
        font-size: 1.35rem;
    }
    
    .auth-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

