/* ===================
   LOGIN.CSS - Login Page Styles
   =================== */

/* Login Background */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #e6b800 0%, #b8920a 100%);
    z-index: 1;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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="10" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="25" r="0.3" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="15" r="0.4" fill="rgba(255,255,255,0.08)"/><circle cx="70" cy="35" r="0.2" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="20" r="0.6" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Login Overlay */
.login-overlay {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Login Header */
.login-header {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.login-logo {
    margin-bottom: 20px;
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-header p {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Login Form */
.login-form {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #e6b800;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e6b800 0%, #b8920a 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 18px;
}

/* Login Footer */
.login-footer {
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    background: rgba(230, 184, 0, 0.02);
}

.login-footer p {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Transition States */
.login-overlay.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

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

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

.form-group .error-message {
    font-size: 14px;
    color: #ef4444;
    margin-top: 6px;
    font-weight: 500;
}

/* Success States */
.form-group.success input {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .login-header,
    .login-form,
    .login-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .login-header {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    
    .login-form {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-header p {
        font-size: 15px;
    }
    
    .logo-image {
        width: 70px;
        height: 70px;
    }
}