.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

/* Background overlays for depth and glow effects */
.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.7) 0%, rgba(9, 13, 22, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

[data-theme="light"] .login-bg-overlay {
    background: linear-gradient(135deg, rgba(244, 246, 250, 0.75) 0%, rgba(244, 246, 250, 0.9) 100%);
}

.login-glow-1, .login-glow-2 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 2;
    opacity: 0.45;
    pointer-events: none;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.login-glow-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.login-glow-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

[data-theme="light"] .login-glow-1, [data-theme="light"] .login-glow-2 {
    opacity: 0.25;
}

/* Glass login card container */
.login-card {
    width: 100%;
    max-width: 460px;
    padding: 45px 40px;
    z-index: 10;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Header within Login Card */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    margin-bottom: 20px;
    box-shadow: 0 8px 24px var(--primary-glow);
    animation: pulseLogo 3s infinite ease-in-out;
}

.login-logo svg {
    width: 36px;
    height: 36px;
    color: white;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Form inputs & structure */
.login-form .form-group {
    position: relative;
    margin-bottom: 24px;
}

.login-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.login-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: all var(--transition-fast);
}

.login-input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-glass);
}

.login-input:focus + .input-icon {
    color: var(--primary);
}

/* Password Toggle Visibility Button */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Extra options (Remember me & Forgot Password) */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13.5px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Button stylings */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.05);
}

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

/* Error/Success Alert Box */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--error);
    color: #fca5a5;
}

[data-theme="light"] .alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.alert-danger svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Copyright Footer */
.login-footer {
    margin-top: 35px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

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

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 10%) scale(1.15);
    }
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px var(--primary-glow);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .login-card {
        padding: 35px 24px;
    }
    
    .login-title {
        font-size: 22px;
    }
}
