/* =========================================================
   LOGIN PAGE — Premium Glassmorphism Redesign (AHIS)
   ========================================================= */

:root {
    --login-primary: #59BCD9;
    --login-primary-dark: #3FA0BD;
    --login-bg-dark: #0f172a;
    --login-glass-bg: rgba(255, 255, 255, 0.03);
    --login-glass-border: rgba(255, 255, 255, 0.1);
    --login-text: #f8fafc;
    --login-text-muted: #94a3b8;
    --login-radius: 32px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--login-bg-dark);
    position: relative;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 24px;
}

/* Dynamic Background Blobs */
.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
}

.login-page::before {
    background: var(--login-primary);
    top: -200px;
    left: -100px;
    animation: drift 15s infinite alternate;
}

.login-page::after {
    background: #3b82f6;
    bottom: -200px;
    right: -100px;
    animation: drift 15s infinite alternate-reverse;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 50px);
    }
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 680px;
    background: var(--login-glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--login-glass-border);
    border-radius: var(--login-radius);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* ---------- LEFT PANEL ---------- */
.login-illustration {
    flex: 1.1;
    background: linear-gradient(135deg, rgba(89, 188, 217, 0.15) 0%, rgba(15, 23, 42, 0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.brand-float {
    text-align: center;
    margin-bottom: 40px;
    z-index: 5;
    animation: fadeInDown 0.8s ease-out;
}

.brand-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(89, 188, 217, 0.4));
}

.brand-float h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 4px;
    line-height: 1;
}

.brand-float p {
    color: var(--login-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
}

.illustration-wrapper {
    z-index: 5;
    animation: float 4s ease-in-out infinite;
}

.illustration-wrapper img {
    max-width: 380px;
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    background: white;
    opacity: 0.03;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

/* ---------- RIGHT PANEL ---------- */
.login-form-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.form-header {
    margin-bottom: 40px;
    animation: fadeInRight 0.8s ease-out;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--login-text-muted);
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out both;
}

.login-form .form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.login-form .form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.login-form label {
    display: block;
    color: var(--login-text);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-text-muted);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.login-container .login-form .input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 60px 16px 52px !important;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--login-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(89, 188, 217, 0.15);
    outline: none;
}

.input-wrapper:focus-within i {
    color: var(--login-primary);
}

.login-container .login-form .input-wrapper .password-toggle {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--login-text-muted) !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 10 !important;
}

.login-container .login-form .input-wrapper .password-toggle i {
    font-size: 1.2rem !important;
    position: static !important;
    transform: none !important;
    display: block !important;
}

.form-check-label {
    color: var(--login-text-muted);
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-primary-dark) 100%);
    border: none;
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 20px 40px -10px rgba(89, 188, 217, 0.4);
    margin-top: 10px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-login:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(89, 188, 217, 0.5);
}

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

.login-footer {
    margin-top: 48px;
    text-align: center;
    color: var(--login-text-muted);
    font-size: 0.85rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        max-width: 500px;
        flex-direction: column;
        min-height: auto;
    }

    .login-illustration {
        display: none;
    }

    .login-form-panel {
        padding: 40px;
    }
}