body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}

/* Container untuk circles - tambahkan ke body atau wrapper utama */
.decorative-circles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Tidak mengganggu interaksi */
    z-index: 0;
    overflow: hidden;
}

/* Base circle styling */
.circle {
    position: absolute;
    border-radius: 50%;
    /* background-color: #F05A29; */
    opacity: 0.8;
}

/* Circle di Kiri Atas */
.circle-top-left {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    background-color: #F05A29;
    box-shadow: inset -3px -2px 10px 0px rgba(0, 0, 0, 0.5);
}

/* Circle di Kanan Bawah */
.circle-bottom-right {
    width: 250px;
    height: 250px;
    bottom: -125px;
    right: -125px;
    background-color: #FFA24A;
    box-shadow: inset 6px 5px 10px 0px rgba(0, 0, 0, 0.5);
}


/* ANIMASI OPSIONAL */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.circle-animated {
    animation: float 6s ease-in-out infinite;
}


.auth-wrapper {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 750px;
    width: 100%;
}

.welcome-card {
    position: absolute;
    right: 0;
    z-index: 1;
    background-color: #F05A29;
    color: white;
    border-radius: 30px;
    box-shadow: 0px 14px 18px 14px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 326px;
    text-align: center;
    height: 425px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.welcome-card.slide-left {
    right: auto;
    left: 0;
}

.welcome-card h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
}

.welcome-card h3 {
    margin: 0;
    padding-top: 5px;
    font-size: 16px;
    font-weight: 400;
}

.welcome-card button {
    margin-top: 18px;
    background-color: white;
    color: #F05A29;
    border: none;
    width: 80px;
    height: 18px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.welcome-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.welcome-card button:active {
    transform: scale(0.95);
}

.login-container {
    background-color: white;
    border-radius: 30px;
    box-shadow: 5px 3px 9px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 300px;
    height: 378px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: 0;
}

.login-container.slide-right {
    left: 368px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.login-header h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 500;
    border-bottom: 2px solid #FFA24A;
    /* padding-bottom: 5px; */
    display: inline-block;
}

.login-body {
    flex: 1;
}

/* Form Styling */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Input Wrapper Styling */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 14px 7px 9px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 0px;
}

.input-wrapper:focus-within {
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Icon Styling */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e0e0e000;
    border-radius: 8px;
    flex-shrink: 0;
}

.icon svg {
    width: 24px;
    height: 24px;
    fill: #666;
}

.startorange {
    width: 12px;
    height: 37px;
    background: #F05A29;
    flex-shrink: 0;
    /* margin: 0 0 0 0px; */
    z-index: -1;
    position: absolute;
    padding-left: 10px;
    left: -6px;
    border-radius: 10px;
    /*bottom: 252px; */
    /* margin-bottom: 10px; */
}



/* Divider (Garis Merah) */
.divider {
    width: 3px;
    height: 30px;
    background: #FF5722;
    margin: 0 20px;
    flex-shrink: 0;
}

/* Input Field */
.input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-style: italic;
    color: #333;
    background: transparent;
}

.input-field::placeholder {
    color: #bbb;
    font-style: italic;
}

/* Error Message */
/* .error-message {
    display: block;
    color: #f44336;
    font-size: 14px;
    margin-top: 8px;
    margin-left: 20px;
} */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 15px;
    height: 15px;
    border: 2px solid #FF5722;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:hover {
    border-color: #FF7043;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    /* Ceklis hitam */
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-me label {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.btn-login {
    width: 80px;
    margin-top: 18px;
    background-color: #F05A29;
    color: white;
    border: none;
    height: 18px;
    margin-left: 35%;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #d94d20;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-login:active {
    transform: scale(0.95);
}

.btn-login:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: scale(1);
}

.forgot-password {
    text-align: right;
}

.forgot-password p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.forgot-password a {
    color: #F05A29;
    text-decoration: underline;
}

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

.back-to-login {
    text-align: left;
    margin-top: 20px;
}

.back-to-login p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.back-to-login a {
    color: #F05A29;
    text-decoration: underline;
}

.back-to-login:hover {
    text-decoration: underline;
}



.terms-agreement {
    display: flex;
    align-items: center;
}

.terms-agreement input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 15px;
    height: 15px;
    border: 2px solid #FF5722;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.terms-agreement input[type="checkbox"]:hover {
    border-color: #FF7043;
}

.terms-agreement input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-agreement label {
    margin: 0;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    /* Pastikan di atas segalanya */
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 0;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error p,
.alert-success p {
    margin: 5px 0;
}

/* ========================================
   ANIMASI TRANSISI FORM
   ======================================== */

/* Blur Zoom Out - Form keluar */
@keyframes blurZoomOut {
    0% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        filter: blur(15px);
        transform: scale(0.85) translateY(-20px);
    }
}

/* Blur Zoom In - Form masuk */
@keyframes blurZoomIn {
    0% {
        opacity: 0;
        filter: blur(15px);
        transform: scale(1.15) translateY(20px);
    }

    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1) translateY(0);
    }
}

/* Fade Slide Out - Text keluar */
@keyframes fadeSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Fade Slide In - Text masuk */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: #F05A29;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    width: 90%;
    max-width: 685px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

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

.modal-header {
    /* background: linear-gradient(135deg, #F05A29, #FFA24A); */
    color: white;
    padding: 20px 30px;
    padding-bottom: 0px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.close {
    color: white;
    position: absolute;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ddd;
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
    color: #ffffff;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    list-style: none;
    ;
}

.modal-footer {
    padding: 30px 30px;
    /* background-color: #f8f9fa; */
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.btn-agree {
    background-color: #ffffff;
    color: #F05A29;
    border: none;
    padding: 4px 31px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    align-content: center;
    margin-bottom: 10px;

}

.btn-agree:hover {
    background-color: #d94d20;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.divider1 {
    position: absolute;
    width: 12px;
    height: 46px;
    background: #e0e0e0;
    margin: 8px 20px;
    flex-shrink: 0;
    left: -24px;
    /* top: 0; */
    border-radius: 10px;
}

/* ========================================
   RESPONSIVE DESIGN FOR TABLET & MOBILE
   ======================================== */

/* Tablet Styles (768px and below) */
@media screen and (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        max-width: 90%;
        gap: 30px;
    }

    .welcome-card {
        position: relative;
        right: auto;
        left: auto;
        max-width: 100%;
        width: 100%;
        height: auto;
        padding: 30px 20px;
        order: 2;
    }

    .login-container {
        position: relative;
        left: auto;
        max-width: 100%;
        width: 100%;
        height: auto;
        padding: 30px 20px;
        order: 1;
    }

    .login-container.slide-right {
        left: auto;
    }

    .welcome-card.slide-left {
        left: auto;
    }

    .decorative-circles {
        display: none;
    }

    .input-wrapper {
        padding: 12px 15px;
    }

    .icon {
        width: 35px;
        height: 35px;
    }

    .icon svg {
        width: 20px;
        height: 20px;
    }

    .divider {
        margin: 0 15px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .welcome-card h2 {
        font-size: 24px;
    }

    .welcome-card h3 {
        font-size: 14px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-login {
        margin-left: 0;
        width: 100%;
        height: 40px;
    }

    .welcome-card button {
        width: 100px;
        height: 30px;
    }
}

/* Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .auth-wrapper {
        max-width: 95%;
        gap: 20px;
    }

    .welcome-card {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .login-container {
        padding: 25px 15px;
        border-radius: 20px;
    }

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

    .welcome-card h2 {
        font-size: 22px;
    }

    .welcome-card h3 {
        font-size: 13px;
        padding-top: 8px;
    }

    .input-wrapper {
        padding: 10px 12px;
        margin-bottom: 15px;
    }

    .icon {
        width: 30px;
        height: 30px;
    }

    .icon svg {
        width: 18px;
        height: 18px;
    }

    .divider {
        margin: 0 10px;
        height: 25px;
    }

    .input-field {
        font-size: 14px;
    }

    .remember-me label,
    .terms-agreement label {
        font-size: 12px;
    }

    .forgot-password p {
        font-size: 12px;
    }

    .btn-login {
        height: 35px;
        font-size: 14px;
    }

    .welcome-card button {
        width: 80px;
        height: 25px;
        font-size: 12px;
    }

    .alert {
        min-width: 250px;
        max-width: 90%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .modal-header {
        padding: 15px 20px;
    }

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

    .modal-body {
        padding: 20px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 20px;
    }

    .btn-agree {
        padding: 8px 25px;
        font-size: 14px;
    }
}

/* Small Mobile Styles (360px and below) */
@media screen and (max-width: 360px) {
    .auth-wrapper {
        max-width: 98%;
    }

    .welcome-card,
    .login-container {
        padding: 20px 10px;
    }

    .input-wrapper {
        padding: 8px 10px;
    }

    .startorange {
        width: 10px;
        height: 30px;
        left: -5px;
    }

    .divider {
        margin: 0 8px;
        height: 20px;
    }

    .login-header h1 {
        font-size: 18px;
    }

    .welcome-card h2 {
        font-size: 20px;
    }

    .welcome-card h3 {
        font-size: 12px;
    }

    .input-field {
        font-size: 13px;
    }

    .remember-me label,
    .terms-agreement label {
        font-size: 11px;
    }

    .forgot-password p {
        font-size: 11px;
    }

    .btn-login {
        height: 30px;
        font-size: 13px;
    }

    .welcome-card button {
        width: 70px;
        height: 22px;
        font-size: 11px;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}