@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #0a1628, #1a3fa8, #0f2460, #0a1628);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Blobs for depth */
.bg-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #c9920a;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #2d5be3;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 60px) scale(1.15);
    }
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    height: 650px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    z-index: 10;
    overflow: hidden;
    margin: 20px;
}

.login-left {
    flex: 1.2;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: white;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(26, 63, 168, 0.4) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideDown 0.8s ease-out forwards;
}

.login-logo-img {
    height: 60px;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #ffffff;
}

.login-left h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-left h1 span {
    color: #f4b429;
}

.login-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 22px;
    background: linear-gradient(to right, #ffffff, #a0b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.login-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 45px;
    line-height: 1.65;
    animation: slideUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(12px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #f4b429;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.login-right {
    flex: 1;
    background: #ffffff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-right-content {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.login-right h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f1f45;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #5a6882;
    font-size: 1rem;
    margin-bottom: 45px;
    line-height: 1.5;
}

.error-msg {
    background: #fff1f0;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.form-group {
    margin-bottom: 26px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f1f45;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5bc;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.form-control-login {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 2px solid #e4e9f2;
    border-radius: 14px;
    background: #f8faff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #0f1f45;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control-login::placeholder {
    color: #9aa5bc;
    font-weight: 400;
}

.form-control-login:focus {
    background: #ffffff;
    border-color: #1a3fa8;
    box-shadow: 0 0 0 4px rgba(26, 63, 168, 0.12);
}

.form-control-login:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: #1a3fa8;
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1a3fa8 0%, #2d5be3 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(26, 63, 168, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(26, 63, 168, 0.45);
}

.btn-login:hover::after {
    left: 150%;
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(26, 63, 168, 0.3);
}

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

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

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
        border-radius: 24px;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 50px 30px;
        border-radius: 24px;
    }
}