.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #111827 !important;
}

.login-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(32, 107, 196, 0.2), transparent),
        radial-gradient(ellipse 60% 50% at 80% 120%, rgba(32, 107, 196, 0.15), transparent),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(32, 107, 196, 0.1), transparent);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.login-glow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-glow::before,
.login-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 15s ease-in-out infinite;
}

.login-glow::before {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.3) 0%, rgba(32, 107, 196, 0.1) 100%);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.login-glow::after {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.2) 0%, rgba(32, 107, 196, 0.1) 100%);
    bottom: -100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(32, 107, 196, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 107, 196, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.login-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(32, 107, 196, 0.6) 0%, transparent 0.5%);
    background-size: 100px 100px;
    opacity: 0.3;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes sparkle {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 2rem;
    width: 100%;
}

.login-right {
    width: 500px;
}

.login-welcome {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-welcome h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.3px;
}

.login-welcome h1 .wave {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.login-welcome p {
    font-size: 1rem;
    color: rgba(148, 163, 184, 0.8);
    margin: 0;
}

.login-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-input {
    width: 100%;
    background: #1f2937 !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    color: #e2e8f0 !important;
    transition: all 0.3s ease;
    outline: none;
}

.login-input:focus {
    background: #1f2937 !important;
    border-color: #206bc4;
    box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.2);
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #1f2937 inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    caret-color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-input::placeholder {
    color: #64748b;
}

.login-eye {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: rgba(148, 163, 184, 0.5);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-eye:hover {
    color: rgba(148, 163, 184, 0.9);
}

.login-submit {
    width: 100%;
    background: #206bc4;
    border: none;
    border-radius: 10px;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.login-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.login-submit:hover::before {
    left: 100%;
}

.login-submit:hover {
    background: #1a5aa0;
    box-shadow: 0 8px 25px rgba(32, 107, 196, 0.35);
}

.login-submit:active {
    transform: translateY(-1px);
}

.login-submit-text {
    position: relative;
    z-index: 1;
}

.login-submit-loader {
    display: none;
}

.login-submit.loading .login-submit-text {
    visibility: hidden;
}

.login-submit.loading .login-submit-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .login-container {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem;
        width: 100%;
    }
    
    .login-right {
        width: 100%;
        max-width: 550px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-right {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .login-right-admin {
        max-width: 95% !important;
        padding: 0 1rem !important;
    }
    
    .login-welcome h1 {
        font-size: 1.5rem;
    }
    
    .login-input {
        padding: 1rem 1.25rem;
        font-size: 15px;
    }
    
    .login-submit {
        padding: 1rem 1.5rem;
        font-size: 15px;
    }
}
