/* ================================================== */
/* AUTH PAGES STUNNING STYLES */
/* ================================================== */

:root {
    --auth-bg-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --auth-bg-secondary: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    --auth-card-bg: rgba(15, 23, 42, 0.95);
    --auth-border: rgba(147, 51, 234, 0.2);
    --auth-text-primary: #f8fafc;
    --auth-text-secondary: #cbd5e1;
    --auth-text-muted: #94a3b8;
}

.auth-page {
    background: var(--auth-bg-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--auth-border);
    border-radius: 2rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(147, 51, 234, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.auth-card:hover::before {
    left: 100%;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(147, 51, 234, 0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.auth-logo a:hover {
    transform: scale(1.05);
}

.auth-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--auth-text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 1rem;
    color: var(--auth-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.auth-input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    background: rgba(30, 41, 59, 0.7);
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9333ea;
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.auth-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border: none;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button-secondary {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--auth-text-primary);
}

.auth-button-secondary:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: #9333ea;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--auth-text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links a {
    color: var(--auth-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
}

.auth-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.auth-links a:hover::before {
    left: 100%;
}

.auth-links a:hover {
    color: #9333ea;
    transform: translateY(-1px);
}

.auth-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-checkbox input[type="checkbox"] {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.25rem;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
}

.auth-checkbox input[type="checkbox"]:checked {
    background: #9333ea;
    border-color: #9333ea;
}

.auth-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.auth-checkbox input[type="checkbox"]:hover {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.auth-checkbox label {
    color: var(--auth-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-checkbox label a {
    color: #9333ea;
    text-decoration: none;
}

.auth-checkbox label a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    animation: slideInDown 0.5s ease;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.auth-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.auth-success {
    color: #22c55e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Input Focus States */
.auth-input-group.focused .auth-input-icon {
    color: #9333ea;
    transform: translateY(-50%) scale(1.1);
}

.auth-input-group.focused .auth-input {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Error States */
.auth-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-input.error + .auth-input-icon {
    color: #ef4444;
}

/* Success States */
.auth-input.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.auth-input.success + .auth-input-icon {
    color: #22c55e;
}

/* Status Icons */
.status-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Icon Animations */
.auth-input-icon {
    transition: all 0.3s ease;
}

.auth-button i {
    transition: transform 0.3s ease;
}

.auth-button:hover i {
    transform: scale(1.1);
}

/* Loading State */
.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: pulse 2s infinite;
}

.auth-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 1.5rem;
    }
    
    .auth-logo a {
        font-size: 2rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .status-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-page {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .auth-input {
        border-width: 2px;
    }
    
    .auth-button {
        border: 2px solid #9333ea;
    }
    
    .auth-alert {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .auth-button,
    .auth-input,
    .auth-links a,
    .auth-logo a {
        animation: none;
        transition: none;
    }
}
