﻿/* Forgot Password Modal Styles */
.forgot-password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

    .forgot-password-modal-overlay.show {
        display: flex;
    }

.forgot-password-modal {
    position: relative;
    width: 552px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--Colors-Gray-White, white);
    border-radius: 24px;
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
}

    .forgot-password-modal.show {
        display: inline-flex;
    }

.forgot-password-modal-close {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .forgot-password-modal-close {
    left: auto;
    right: 24px;
}

[dir="ltr"] .forgot-password-modal-close {
    left: 24px;
    right: auto;
}

.forgot-password-container {
    width: 100%;
    padding: 48px 24px;
    position: relative;
    background: var(--Colors-Gray-White, white);
    border-radius: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    display: inline-flex;
    box-sizing: border-box;
}

.forgot-password-header {
    align-self: stretch;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    display: flex;
}

.forgot-password-icon {
    width: 80px;
    height: 80px;
    background: var(--Primary-50, #F3F2F6);
    border-radius: 40px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: inline-flex;
}

.forgot-password-title {
    align-self: stretch;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-align: center;
    color: var(--Colors-Gray-Darkest, #111111);
    font-size: 24px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 700;
    word-wrap: break-word;
}

.forgot-password-description {
    width: 504px;
    max-width: 100%;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-align: center;
    color: var(--Colors-Gray-Dark, #666666);
    font-size: 16px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 500;
    word-wrap: break-word;
}

.forgot-password-text-field {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    display: flex;
}

.forgot-password-label {
    align-self: stretch;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-align: right;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: var(--Colors-Gray-Dark, #666666);
    font-size: 16px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 500;
    word-wrap: break-word;
}

[dir="ltr"] .forgot-password-label {
    text-align: left;
}

.forgot-password-field {
    align-self: stretch;
    padding: 16px;
    background: var(--Colors-Gray-White, white);
    overflow: hidden;
    border-radius: 12px;
    outline: 1px var(--Colors-Gray-Lighter, #E6E6E6) solid;
    outline-offset: -1px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: inline-flex;
    flex-direction: row-reverse;
}

[dir="ltr"] .forgot-password-field {
    flex-direction: row;
}

.forgot-password-input {
    flex: 1 1 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--Colors-Gray-Darkest, #111111);
    font-size: 14px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 500;
    width: 100%;
    text-align: right;
}

[dir="ltr"] .forgot-password-input {
    text-align: left;
}

.forgot-password-input::placeholder {
    color: var(--Colors-Gray-Default, #999999);
}

.forgot-password-field-icon {
    position: relative;
}

.forgot-password-button {
    align-self: stretch;
    height: 64px;
    padding: 0 16px;
    background: var(--Primary-500, #6A5D8B);
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    cursor: pointer;
    border: none;
}

    .forgot-password-button:hover {
        opacity: 0.9;
    }

    .forgot-password-button:active {
        opacity: 0.8;
    }

.forgot-password-button-text {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-align: right;
    color: var(--Colors-Gray-White, white);
    font-size: 20px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 700;
    word-wrap: break-word;
}

[dir="ltr"] .forgot-password-button-text {
    text-align: left;
}

.forgot-password-text-field .text-danger {
    align-self: stretch;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    text-align: right;
}

[dir="ltr"] .forgot-password-text-field .text-danger {
    text-align: left;
}

.forgot-password-error-message {
    align-self: stretch;
    color: #dc3545;
    font-size: 14px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 500;
    text-align: center;
    margin-top: -8px;
    display: none;
}

    .forgot-password-error-message.show {
        display: block;
    }

[dir="ltr"] .forgot-password-error-message {
    text-align: center;
}

@@media (max-width: 768px) {
    .forgot-password-modal {
        width: 95vw;
        max-height: 85vh;
    }
}
