* {
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    /* Background SVG Batik PKK */
    background-color: #0d7377; /* Fallback color */
    background-image: url("/backend/assets/images/backgrounds/batik-pkk.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Overlay gelap semi-transparan agar konten tetap terbaca */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 115, 119, 0.85) 0%,
        rgba(20, 184, 166, 0.75) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.page-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.login-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    max-width: 850px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-branding {
    /* Background semi-transparan agar motif batik tetap terlihat samar */
    background: linear-gradient(
        135deg,
        rgba(13, 115, 119, 0.95) 0%,
        rgba(20, 184, 166, 0.9) 100%
    );
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
    opacity: 0.4;
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    width: 100%;
}

/* CONTAINER UNTUK 2 LOGO */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    background: white;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 10;
}

.branding-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    position: relative;
    z-index: 10;
}

.branding-title .e-dasawisma {
    white-space: nowrap;
    display: inline-block;
}

.branding-subtitle {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 10;
}

.login-form-container {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 15px;
}

.login-header h2 {
    color: #0d7377;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    color: #64748b;
    font-size: 13px;
}

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

.form-label {
    display: block;
    color: #334155;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 20px;
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
    height: 48px;
    position: relative;
    z-index: 1;
}

.form-control:focus {
    outline: none;
    border-color: #14b8a6;
    background: white;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-control:focus ~ .input-icon,
.form-control:not(:placeholder-shown) ~ .input-icon {
    color: #14b8a6;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d7377 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.3);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0d7377 0%, #095557 100%);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 12px;
}

.footer-text {
    text-align: center;
    color: #64748b;
    font-size: 11px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    border: none;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

@media (max-width: 900px) {
    .login-container {
        max-width: 700px;
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        border-radius: 16px;
    }

    .login-branding {
        padding: 40px 25px 30px;
    }

    .logos-container {
        gap: 15px;
        margin-bottom: 25px;
    }

    .logo-wrapper {
        width: 90px;
        height: 90px;
        padding: 15px;
    }

    .branding-title {
        font-size: 20px;
        margin-top: 15px;
    }

    .branding-subtitle {
        font-size: 12px;
    }

    .login-form-container {
        padding: 30px 25px;
    }

    .login-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 10px;
    }

    .login-container {
        max-width: 100%;
        border-radius: 12px;
    }

    .login-branding {
        padding: 35px 20px 25px;
    }

    .logos-container {
        gap: 12px;
    }

    .logo-wrapper {
        width: 80px;
        height: 80px;
        padding: 12px;
    }

    .branding-title {
        font-size: 18px;
    }

    .login-form-container {
        padding: 25px 20px;
    }

    .form-control {
        padding: 11px 14px 11px 46px;
        font-size: 13px;
        height: 46px;
    }

    .btn-login {
        padding: 11px;
        font-size: 13px;
        height: 46px;
    }
}
