:root {
    --primary-green: #2d6a4f;
    --medium-green: #40916c;
    --light-green: #52b788;
    --dark-green: #1b4332;
    --gold-accent: #ffd166;
    --gold-border: rgba(255, 209, 102, 0.68);
    --gold-glow: rgba(255, 209, 102, 0.28);
    --text-dark: #1f2d25;
    --text-muted: #666666;
    --font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background:
        radial-gradient(
            circle at 14% 18%,
            rgba(255, 209, 102, 0.38),
            transparent 34%
        ),
        radial-gradient(
            circle at 84% 78%,
            rgba(176, 42, 42, 0.36),
            transparent 36%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 180, 60, 0.13),
            transparent 58%
        ),
        linear-gradient(
            135deg,
            var(--primary-green),
            var(--light-green),
            var(--dark-green)
        );
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 25px;
}

.login-card {
    width: 900px;
    max-width: 100%;
    height: auto;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* ==========================
   BAGIAN KIRI (Branding Panel)
========================== */
.login-left {
    width: 50%;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 209, 102, 0.22),
            transparent 38%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(176, 42, 42, 0.23),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            var(--primary-green),
            var(--light-green),
            var(--dark-green)
        );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    color: #ffffff;
    border-right: 5px solid transparent;
    border-image: linear-gradient(180deg, var(--gold-accent), #f0c75e, #b68900)
        1;
}

.logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.logo-item {
    width: 95px;
    height: 95px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid var(--gold-border);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    backdrop-filter: blur(6px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 24px var(--gold-glow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-3px) scale(1.03);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-left h4 {
    font-weight: 800;
    line-height: 1.45;
    color: #fff8dc;
    font-size: 22px;
    margin-bottom: 12px;
}

.login-left p {
    font-size: 14px;
    line-height: 1.7;
    color: #f4fbf7;
}

.unit-box {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 209, 102, 0.58);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.13);
}

.unit-box span {
    display: block;
    color: #ffe8a1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.unit-box strong {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
}

.footer-left {
    margin-top: 14px;
    font-size: 13px;
    color: #ffe8a1;
    font-weight: 500;
}

/* ==========================
   BAGIAN KANAN (Form Login)
========================== */
.login-right {
    width: 50%;
    padding: 42px;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 209, 102, 0.1),
            transparent 34%
        ),
        #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.form-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 6px;
}

.form-control {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dedede;
    padding: 0 18px;
    background: #f7faf8;
    font-size: 15px;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: var(--gold-accent);
    background: #ffffff;
    box-shadow:
        0 0 0 0.2rem rgba(255, 209, 102, 0.3),
        0 0 12px rgba(255, 209, 102, 0.25);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 55px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 19px;
    color: #666666;
    cursor: pointer;
    opacity: 0.75;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-login {
    width: 100%;
    height: 48px;
    font-size: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--medium-green),
        var(--light-green)
    );
    color: #ffffff;
    font-weight: 800;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(45, 106, 79, 0.25);
}

.btn-login:hover {
    background: linear-gradient(135deg, #8b1e1e, #b02a2a, var(--gold-accent));
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(176, 42, 42, 0.38);
}

.footer-right {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #888888;
    line-height: 1.6;
}

/* ==========================
   SWEET ALERT CUSTOMIZATION
========================== */
.app-swal {
    width: 330px !important;
    max-width: 90%;
    padding: 1.2rem !important;
    border-radius: 16px !important;
}

.app-swal-title {
    font-size: 1.5rem !important;
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
    font-weight: 700 !important;
}

.swal2-icon {
    zoom: 0.72;
    margin: 0.3rem auto 0.5rem !important;
}

.swal2-html-container {
    font-size: 0.95rem !important;
    line-height: 1.45;
    margin: 0.2rem 0 0.8rem !important;
}

.app-swal-confirm {
    min-width: 120px;
    height: 42px;
    font-size: 15px;
    border-radius: 10px;
}

/* ==========================
   RESPONSIVE BREAKPOINTS
========================== */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        border-right: none;
        border-bottom: 5px solid transparent;
        border-image: linear-gradient(
                90deg,
                var(--gold-accent),
                #f0c75e,
                #b68900
            )
            1;
        padding: 40px 25px;
    }

    .login-right {
        padding: 35px 25px;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 20px 14px;
    }

    .logo-group {
        gap: 12px;
    }

    .logo-item {
        width: 85px;
        height: 85px;
        padding: 10px;
    }

    .login-left h4 {
        font-size: 18px;
    }

    .login-right h2 {
        font-size: 22px;
    }

    .unit-box {
        padding: 10px 16px;
    }

    .unit-box strong {
        font-size: 16px;
    }
}
