/* auth-modern.css - Beautiful authentication styling */

:root {
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --auth-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
    --auth-card-bg: rgba(255, 255, 255, 0.95);
}

/* Full-height container with gradient background */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    50% { transform: translateX(-20px) translateY(-20px) rotate(180deg); }
}

/* Beautiful auth card */
.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--auth-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth card header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--auth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Form styling */
.auth-form {
    width: 100%;
}

.auth-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.auth-form .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.auth-form .form-control::placeholder {
    color: #9ca3af;
}

/* Beautiful submit button */
.auth-form .btn-primary {
    background: var(--auth-gradient);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-form .btn-primary:hover::before {
    left: 100%;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Link styling */
.auth-form .btn-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: 100%;
}

.auth-form .btn-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--auth-primary-hover);
    transform: translateY(-1px);
}

/* Alert styling */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

/* Responsive design */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
}