/* ============================================
   Login Page - Modern Glassmorphism Style
   Matching Dashboard Color Scheme (No Tailwind)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Body */
body {
    min-height: 100vh;
    background: #090a0f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #090a0f 0%, #0d0e14 50%, #090a0f 100%);
    z-index: -2;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand Section */
.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Card */
.login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    font-size: 0.95rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-icon.toggle-password {
    pointer-events: auto;
    cursor: pointer;
}

.input-icon.toggle-password:hover {
    color: #fff;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.forgot-link {
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.btn-primary.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.form-divider span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Google Button */
.btn-google {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-google:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Reset Form */
.reset-header {
    text-align: center;
    margin-bottom: 24px;
}

.reset-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.reset-icon i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.reset-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.reset-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: #3b82f6;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #60a5fa;
}

.back-link a i {
    margin-right: 6px;
}

/* Sign Up Prompt */
.signup-prompt {
    text-align: center;
    margin-top: 24px;
}

.signup-prompt p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.signup-link {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: #60a5fa;
}

/* Messages */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }
    
    .login-brand {
        top: 24px;
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
}
