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

body {
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

.wave {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 7rem;
    padding: 0 2rem;
}

.img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.login-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.img img {
    width: 500px;
}

form {
    width: 360px;
}

.login-content img {
    height: 100px;
}

.login-content h2 {
    margin: 15px 0;
    color: #333;
    text-transform: uppercase;
    font-size: 2.9rem;
}

.login-content .input-div {
    position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin: 25px 0;
    padding: 5px 0;
    border-bottom: 2px solid #d9d9d9;
}

.login-content .input-div.one {
    margin-top: 0;
}

.i {
    color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.i i {
    transition: 0.3s;
}

.input-div > div {
    position: relative;
    height: 45px;
}

.input-div > div > h5 {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    transition: 0.3s;
}

.input-div:before,
.input-div:after {
    content: "";
    position: absolute;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #38d39f;
    transition: 0.4s;
}

.input-div:before {
    right: 50%;
}

.input-div:after {
    left: 50%;
}

.input-div.focus:before,
.input-div.focus:after {
    width: 50%;
}

.input-div.focus > div > h5 {
    top: -5px;
    font-size: 15px;
}

.input-div.focus > .i > i {
    color: #38d39f;
}

.input-div > div > input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0.5rem 0.7rem;
    font-size: 1.2rem;
    color: #555;
    font-family: "poppins", sans-serif;
}

.input-div.pass {
    margin-bottom: 4px;
}

a {
    display: block;
    text-align: right;
    text-decoration: none;
    color: #999;
    font-size: 0.9rem;
    transition: 0.3s;
}

a:hover {
    color: #38d39f;
}

.btn {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 25px;
    outline: none;
    border: none;
    background-image: linear-gradient(to right, #32be8f, #38d39f, #32be8f);
    background-size: 200%;
    font-size: 1.2rem;
    color: #fff;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    margin: 1rem 0;
    cursor: pointer;
    transition: 0.5s;
}
.btn:hover {
    background-position: right;
}

@media screen and (max-width: 1050px) {
    .container {
        grid-gap: 5rem;
    }
}

@media screen and (max-width: 1000px) {
    form {
        width: 290px;
    }

    .login-content h2 {
        font-size: 2.4rem;
        margin: 8px 0;
    }

    .img img {
        width: 400px;
    }
}

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

    .img {
        display: none;
    }

    .wave {
        display: none;
    }

    .login-content {
        justify-content: center;
    }
}

.input-div.remember {
    display: flex;
    align-items: center;
    margin-top: 10px; /* Sesuaikan margin */
}

.div-remember {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 25px;
}

.toggle-container {
    position: relative;
}

.remember-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.switch-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d6001c85;
    transition: 0.4s;
    border-radius: 24px;
}

.switch-toggle::after {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.remember-checkbox:checked + .switch-toggle::before {
    background-color: #00b1767a;
}

.remember-checkbox:checked + .switch-toggle::after {
    transform: translateX(26px);
}

.toggle-password {
    position: absolute;
    right: 10px; /* Sesuaikan dengan padding input */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #333;
}

/* Pastikan input password memiliki padding-right yang cukup untuk ikon */
.input-div.pass .input {
    padding-right: 30px; /* Atau sesuaikan dengan ukuran ikon */
}

.input:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled {
    background-image: linear-gradient(to right, #ccc, #ccc);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Fix untuk countdown text */
.countdown-text {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #dc3545;
    font-weight: bold;
}
/* Spinner styles */
.spinner-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #32be8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: 300px;
    backdrop-filter: blur(10px);
}

.toast.toast-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.toast.toast-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.toast.toast-warning {
    background: linear-gradient(135deg, #ffc107, #f39c12);
}

.toast.toast-info {
    background: linear-gradient(135deg, #17a2b8, #3498db);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* Lock status styles */
.lock-status {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
}

.lock-text {
    font-weight: bold;
    margin: 0 0 5px 0;
}

.countdown-text {
    margin: 0;
    font-size: 14px;
    color: #dc3545;
    font-weight: bold;
}

/* Disable all form elements when locked */
.locked-form *:not(.lock-status):not(.countdown-text) {
    pointer-events: none;
    opacity: 0.6;
}

/* Input error styling */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Button loading state */
.btn:disabled {
    background-image: linear-gradient(to right, #ccc, #ccc);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button with spinner */
.btn.with-spinner {
    position: relative;
    padding-right: 60px;
}

.btn.with-spinner .spinner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.spinner-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #32be8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Tambahkan ini ke style.css */

/* Button with spinner */
.btn.with-spinner {
    position: relative;
    padding-right: 60px;
}

.btn.with-spinner .spinner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #fff;
}

/* Form disabled overlay */
.form-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 9998;
    pointer-events: none;
}

/* Countdown position */
.lock-status {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
    margin-bottom: 20px; /* Tambahkan margin bottom untuk jarak */
}

div#countdown-message {
    color: red;
}
