/* ===== Global Body Background ===== */
body.full-background {
    margin: 0;
    padding: 0;
    background-image: url("/costum/background2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", sans-serif;
}

/* ===== Container Wrapper ===== */
.app-container {
    align-items: center;
}

/* ===== Login Section Layout ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px 60px;
    gap: 60px;
    flex-wrap: wrap;
}

/* ===== Illustration Image (Kiri) ===== */
.login-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-img {
    width: 100%;
    /* max-width: 700px; */
    height: auto;
}

/* ===== Login Form Box (Kanan) ===== */
.login-box {
    flex: 1;
    background-color: #ffffff;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 380px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* ===== Logo ===== */
.login-header img.logo {
    width: 160px;
}

.login-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #030303;
    margin-bottom: 20px;
}

/* ===== Input Form ===== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.input-field {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-top: 8px;
}

/* ===== Submit Button ===== */
.login-button {
    width: 100%;
    padding: 14px;
    background-color: #d4000f;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.login-button:hover {
    background-color: #5fa11c;
}

/* ===== Footer Text (Lupa Password / Register) ===== */
.form-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #494646;
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-link {
    color: #d4000f;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}

.divider-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
    color: #777;
    font-size: 14px;
}

.divider-with-text hr {
    flex: 1;
    border: none;
    border-top: 2px solid #000000;
    margin: 0;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 60%;
    right: 12px;
    transform: translateY(-50%);
    background-color: #666;
    color: white;
    padding: 6px;
    border-radius: 70%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password i {
    font-size: 12px;
}

.form-footer .register-text {
    color: #aaa;
    font-size: 13px;
}

/* ===== Footer Page Style ===== */
.app-footer {
    background-color: #ffffff;
    color: #000;
    font-size: 12px;
    text-align: justify;
}

.spinner {
    border: 3px solid #f3f3f3;
    /* Light grey */
    border-top: 3px solid white;
    /* White spinner */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Responsive Mobile Version ===== */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
    }

    .login-illustration {
        order: 1;
    }

    .illustration-img {
        max-width: 80%;
    }

    .login-box {
        order: 2;
        max-width: 100%;
        padding: 40px 20px;
    }

    .form-footer .register-text {
        color: #aaa;
    }

    .divider-with-text {
        color: #aaa;
    }
}
