:root {
    --background-color: #2A9C63;
    --title-black-color: #101828;
    --label-color: #101828;
}

body {
    font-family: product-sans-regular;
    background-color: var(--background-color);
    background-image: url('../images/login_bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100vh;
}

.login-card {
    width: 60.25rem;
    height: 38.75rem;
    background: #fff;
    border-radius: 2.5rem;
    text-align: center;
    box-shadow: 0 0.75rem 2.188rem rgba(0, 0, 0, 0.25);
    margin: 0 1.25rem;
}

.loginImg-container img {
    width: 27rem;
    height: auto;
    max-height: -webkit-fill-available;
    border-radius: 2.5rem 0 0 2.5rem;
    box-shadow: 0 0.75rem 2.188rem rgba(0, 0, 0, 0.25);
    object-fit: cover;
    overflow: hidden;
}

.login-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1.875rem 1.875rem 0 0;
    padding: 2.5rem 0 0.938rem 0;
    display: flex;
    flex-direction: column;
}

.login-logo img {
    width: 55%;
}

.login-title {
    font-size: 1.625rem;
    color: var(--title-black-color);
    font-weight: 700;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--subtitle-text-color);
    margin-bottom: 1.5rem;
}

/* ===== FORM ===== */
form {
    text-align: left;
    padding: 45px;
    padding-top: 10px;
}

label {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 6px;
    display: block;
    color: var(--label-color);
}

input {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    background: #F3F3F5;
    margin-bottom: 16px;
    font-size: 1rem;
}

input:focus {
    outline: 2px solid #1c9c63;
    background: #fff;
}

/* ===== PASSWORD ===== */
.password-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.password-wrapper input {
    margin-bottom: 0 !important;
}

.password-wrapper .eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
}

.password-wrapper .eye:hover {
    opacity: 1;
}

/* ===== BUTTON ===== */
.base-green-btn {
    width: 100%;
    padding: 14px;
    background: var(--background-color);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
    margin: 1rem 0 0;
}

.base-green-btn:disabled {
    opacity: 0.30;
    cursor: not-allowed;
}

/* ===== FORGOT ===== */
.forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 1rem;
    color: #2A9C63;
    text-decoration: none;
}

.error {
    color: red;
    font-size: 12px;
}

.otp-inputs {
    margin-top: 15px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    gap: 15px;
}

.otp-inputs input {
    width: 60px;
    height: 60px;
    margin: 0 3px;
    text-align: center;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    background-color: #F3F3F5;
    display: inline-block;
    padding: 5px;
}

.otp-inputs input:focus {
    outline: none;
    background-color: #b8ead2;
}

.pwd-reset-sec-tip {
    background-color: #ECFDF5;
    border: 0.75px solid #ECFDF5;
    border-radius: 14px;
    padding: 10px 15px;
}

.pwd-reset-sec-tip-title {
    font-size: 14px;
    font-weight: 700;
    color: #2A9C63;
}

.pwd-reset-sec-tip-subtitle {
    color: #2A9C63;
    font-size: 14px;
    font-weight: 400;
}

/* Remove arrows in number inputs*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.version-container {
    color: #0000004F;
    font-size: 20px;
    position: absolute;
    bottom: 1rem;
    width: 100%;
    text-align: center;
}

.loginform-container {
    position: relative;
}

.login-subtitle {
    color: #A5A8AB;
    font-size: 18px;
    padding: 0 60px;
    margin-top: 0.5rem;
}

.email-icon-container {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
}

#resendOtp:disabled {
    opacity: 0.30;
    cursor: not-allowed;
}

.disabled-link {
    pointer-events: none; 
    opacity: 0.30;
    cursor: not-allowed;
}

button:hover {
    background-color: #2e9064;
}

button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.button-loader {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-spin 0.8s linear infinite;
}

button.is-loading .button-loader {
    display: inline-block;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

/* toast styles */
#toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-align: center;
}

.toast {
    min-width: 220px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Types */
.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }
.toast.info { background: #007bff; }
.toast.warning { background: #ffc107; color: #000; }

#loginBtn {
    margin-top: 2.5rem;
}