﻿/* Set New Password Modal Styles */
.set-new-password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

    .set-new-password-modal-overlay.show {
        display: flex;
    }

.set-new-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;
    direction: inherit;
}

    .set-new-password-modal.show {
        display: inline-flex;
    }

.set-new-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"] .set-new-password-modal-close {
    left: auto;
    right: 24px;
}

[dir="ltr"] .set-new-password-modal-close {
    left: 24px;
    right: auto;
}

/* Form Container */
.set-new-password-empty {
    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;
}

.set-new-password-header {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    display: flex;
}

.set-new-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;
}

.set-new-password-icon-svg {
    position: relative;
}

.set-new-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;
    position: relative;
    padding-bottom: 8px;
    direction: inherit;
}

.set-new-password-text-field {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    display: flex;
}

.set-new-password-label {
    align-self: stretch;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-align: right;
    justify-content: flex-start;
    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"] .set-new-password-label,
html[dir="ltr"] .set-new-password-label,
body[dir="ltr"] .set-new-password-label {
    text-align: left;
    justify-content: flex-start;
}

[dir="rtl"] .set-new-password-label,
html[dir="rtl"] .set-new-password-label,
body[dir="rtl"] .set-new-password-label {
    text-align: right;
    justify-content: flex-start;
}

.set-new-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"] .set-new-password-field {
    flex-direction: row;
}

.set-new-password-placeholder {
    flex: 1 1 0;
    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-Default, #999999);
    font-size: 14px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 500;
    word-wrap: break-word;
}

[dir="ltr"] .set-new-password-placeholder {
    text-align: left;
}

.set-new-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;
    direction: inherit;
}

[dir="ltr"] .set-new-password-input,
html[dir="ltr"] .set-new-password-input,
body[dir="ltr"] .set-new-password-input,
[dir="ltr"] .set-new-password-modal .set-new-password-input {
    text-align: left;
    direction: ltr;
}

[dir="rtl"] .set-new-password-input,
html[dir="rtl"] .set-new-password-input,
body[dir="rtl"] .set-new-password-input,
[dir="rtl"] .set-new-password-modal .set-new-password-input {
    text-align: right;
    direction: rtl;
}

.set-new-password-input::placeholder {
    color: var(--Colors-Gray-Default, #999999);
    direction: inherit;
    text-align: inherit;
}

.set-new-password-button {
    cursor: pointer;
    border: none;
}

    .set-new-password-button:hover {
        opacity: 0.9;
    }

    .set-new-password-button:active {
        opacity: 0.8;
    }

#setNewPasswordForm {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.set-new-password-text-field .text-danger {
    align-self: stretch;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    text-align: right;
}

[dir="ltr"] .set-new-password-text-field .text-danger,
html[dir="ltr"] .set-new-password-text-field .text-danger,
body[dir="ltr"] .set-new-password-text-field .text-danger {
    text-align: left;
}

[dir="rtl"] .set-new-password-text-field .text-danger,
html[dir="rtl"] .set-new-password-text-field .text-danger,
body[dir="rtl"] .set-new-password-text-field .text-danger {
    text-align: right;
}

.set-new-password-field-icon {
    position: relative;
}

.set-new-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;
}

.set-new-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"] .set-new-password-button-text,
html[dir="ltr"] .set-new-password-button-text,
body[dir="ltr"] .set-new-password-button-text {
    text-align: left;
}

[dir="rtl"] .set-new-password-button-text,
html[dir="rtl"] .set-new-password-button-text,
body[dir="rtl"] .set-new-password-button-text {
    text-align: right;
}

@@media (max-width: 768px) {
    .set-new-password-modal {
        width: 95vw;
        max-height: 85vh;
    }
}
