body {
    font-family: "DiodrumArabic-Regular", sans-serif;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    direction: rtl;
    margin: 0;
    padding-bottom: 0;
}

.login-container-wrapper {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 688px;
    border-radius: 120px;
    background: #FFFFFF;
    box-shadow: 0px 0px 4px 0px #0000001F;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 49px;
    box-sizing: border-box;
    padding: 64px;
}

.login-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 49px;
    padding-bottom: 24px;
    text-align: center;
}

.logo img {
    width: 201px;
    height: 48px;
}

.welcome h1 {
    font-family: 'DiodrumArabic-Bold', sans-serif;
    font-size: 24px;
    color: #011412;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

.welcome p {
    font-family: 'DiodrumArabic-Regular', sans-serif;
    font-size: 16px;
    color: #656868;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

.login-form {
    width: 100%;
    max-width: 394px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes the button to the bottom */
    gap: 105px;
}

.input-group {
    width: 100%;
    max-width: 394px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.input-field label {
    font-family: 'DiodrumArabic-Medium', sans-serif;
    font-size: 16px;
    color: #101111;
    align-self: flex-start;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    vertical-align: middle;
    padding-bottom: 5px;

}

.input-field input {
    font-family: 'DiodrumArabic-Regular', sans-serif;
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid #D4DADA;
    padding: 0 16px;
    font-size: 14px;
    color: #434646;
    text-align: right;
    box-sizing: border-box;
    padding-bottom: 8px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding: 8px 16px;
    font-family: "DiodrumArabic-Regular", sans-serif;
    font-weight: 400;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.password-wrapper img {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    font-family: 'DiodrumArabic-Regular', sans-serif;
    color: var(--grey-500, rgba(67, 70, 70, 1));
    text-decoration: none;
    margin-top: 4px;
}

.submit-btn {
    /* padding-top: ; */
    width: 100%;
    height: 40px;
    border-radius: 16px;
    background-color: #289B93;
    color: #FFFFFF;
    font-family: "DiodrumArabic-Bold",sans-serif;
    font-size: 14px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    transition: background 0.2s ease;
    padding-bottom: 8px;
}

.submit-btn a {
    /* padding-top: ; */
    width: 100%;
    height: 40px;
    border-radius: 16px;
    background-color: #289B93;
    color: #FFFFFF;
    font-family: "DiodrumArabic-Bold",sans-serif;
    font-size: 14px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    transition: background 0.2s ease;
    /* padding-bottom: 8px; */
    text-decoration: none;
}

@media (max-width: 768px) {
    .login-container {
        border-radius: 60px;
    }

    .welcome h1 {
        font-size: 5vw;
    }

    .welcome p {
        font-size: 3.5vw;
    }

    .logo img {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .login-container {
        border-radius: 30px;
    }

    .login-form {
        gap: 32px;
    }

    .input-field label {
        font-size: 1rem;
    }

    .input-field input {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 0.95rem;
    }

    .logo img {
        width: 80%;
    }
}




/* OTP Input Group */
.otp-input-group {
    width: 394px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.otp-boxes {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
}

.otp-box {
    max-width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 1px solid var(--grey-100, rgba(212, 218, 218, 1));
    background: #FFFFFF;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    font-family: 'DiodrumArabic-Regular', sans-serif;
    outline: none;
}

/* Extra Info Section */
.otp-extra-info {
    max-width: 318px;
    height: 66px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-right: auto;
    margin-left: auto;
    align-items: center;
}

.otp-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #656868;
    font-family: 'DiodrumArabic-Regular', sans-serif;
    font-size: 14px;
    text-align: center;
}

.otp-timer span {
    width: 25px;
    height: 21px;
    color: #656868;
    border-radius: 4px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resend-text {
    font-size: 12px;
    font-family: 'DiodrumArabic-Regular', sans-serif;
    font-weight: 400;
    text-align: center;
    color: #656868;
}

.resend-link {
    font-family: 'DiodrumArabic-Medium', sans-serif;
    color: #289B93;
    text-decoration: none;
    cursor: pointer;
}

/* Error States */
.input-field.error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input-field.error label {
    color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-family: 'DiodrumArabic-Regular', sans-serif;
}

/* Loading States */
.btn-loading {
    display: none;
}

.submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #495057;
}

.toast-message {
    padding: 12px 16px;
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
