/* =========================================
   LOGIN PAGE - CORPORATE BANK ANIMATED
========================================= */

.login-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================
   LOGIN PAGE - CORPORATE + BG IMAGE ANIMATED
========================================= */

.login-page {
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    position: relative;
    overflow: hidden;

    background: url("../img/bg_login_fix.jpeg") center/120% no-repeat;
    
    animation: bgMove 30s ease-in-out infinite alternate;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background pelan bergerak */
@keyframes bgMove {
    0% {
        background-size: 120%;
        background-position: center;
    }
    100% {
        background-size: 135%;
        background-position: center top;
    }
}
.login-page::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.25) 50%,
        transparent 70%
    );
    animation: lightSweep 8s linear infinite;
    pointer-events: none;
}

@keyframes lightSweep {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(50%) translateY(50%) rotate(360deg);
    }
}
@keyframes lightMove {
    0% {
        transform: translate(-10%, -10%);
    }
    50% {
        transform: translate(10%, 10%);
    }
    100% {
        transform: translate(-10%, -10%);
    }
}
@keyframes bgZoom {
    0% {
        background-size: 400% 400%, 110% 110%;
    }
    100% {
        background-size: 400% 400%, 120% 120%;
    }
}

/* Animated gradient movement */
@keyframes gradientMove {
    0% { background-position: 0% 50%, center; }
    50% { background-position: 100% 50%, center; }
    100% { background-position: 0% 50%, center; }
}

/* =========================================
   WRAPPER
========================================= */
.login-page .login-wrapper {
    width: 100%;
    max-width: 1150px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   CARD (FLOATING EFFECT)
========================================= */
.login-page .login-card {
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.25);

    overflow: hidden;

    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* =========================================
   HEADER
========================================= */
.login-page .login-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;

    animation: fadeDown .8s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-page .logo {
    height: 48px;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-page .company-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f2f2b;
    letter-spacing: .6px;
}

/* =========================================
   CONTENT
========================================= */
.login-page .login-content {
    display: flex;
    min-height: 470px;
}

/* =========================================
   IMAGE SIDE
========================================= */
.login-page .login-image {
    width: 50%;
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;

    animation: fadeLeft 1s ease;
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.login-page .login-image img {
    max-width: 85%;
}

/* =========================================
   FORM SIDE
========================================= */
.login-page .login-form {
    width: 50%;
    padding: 50px;

    animation: fadeRight 1s ease;
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.login-page .login-form h2 {
    font-size: 25px;
    font-weight: 700;
    color: #0f2f2b;
    margin-bottom: 6px;
}

.login-page .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 30px;
}

/* =========================================
   FORM INPUT (Glow Animation)
========================================= */
.login-page .form-group {
    margin-bottom: 22px;
}

.login-page label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.login-page input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    transition: all .3s ease;
}

.login-page input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow:
        0 0 0 3px rgba(15, 118, 110, 0.15),
        0 0 15px rgba(15, 118, 110, 0.25);
}

/* =========================================
   FORGOT PASSWORD
========================================= */
.login-page .forgot-wrapper {
    text-align: right;
    margin-top: 6px;
    margin-bottom: 24px;
}

.login-page .forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
    transition: .3s;
}

.login-page .forgot-link:hover {
    color: #0d5f59;
}

/* =========================================
   BUTTON WITH SHINE EFFECT
========================================= */
.login-page .btn-login {
    position: relative;
    overflow: hidden;

    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: #0f766e;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;

    transition: all .3s ease;
}

.login-page .btn-login:hover {
    background: #0d5f59;
    transform: translateY(-2px);
}

/* Shine animation */
.login-page .btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    transform: skewX(-20deg);
    transition: .7s;
}

.login-page .btn-login:hover::before {
    left: 130%;
}

/* =========================================
   FOOTER
========================================= */
.login-page .login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12.5px;
    color: #4b5563;

    animation: fadeUp 1.2s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {

    .login-page .login-content {
        flex-direction: column;
    }

    .login-page .login-image {
        display: none;
    }

    .login-page .login-form {
        width: 100%;
        padding: 40px 30px;
    }
}