﻿/* Create Account Modal Styles */
.create-account-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);
}

    .create-account-modal-overlay.show {
        display: flex;
    }

.create-account-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;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .create-account-modal::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.create-account-modal {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    .create-account-modal.show {
        display: inline-flex;
    }

.create-account-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"] .create-account-modal-close {
    left: auto;
    right: 24px;
}

[dir="ltr"] .create-account-modal-close {
    left: 24px;
    right: auto;
}

/* Create Account Styles */
.create-account-container {
    width: 100%;
    padding: 48px 24px;
    position: relative;
    background: var(--Colors-Gray-White, white);
    border-radius: 24px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    display: inline-flex;
    box-sizing: border-box;
    overflow: visible;
}

.create-account-header {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    display: flex;
    margin-top: 0;
    padding-top: 0;
}

.create-account-icon {
    width: 80px;
    height: 80px;
    background: var(--Primary-50, #F3F2F6);
    border-radius: 40px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: inline-flex;
    overflow: visible;
    position: relative;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.create-account-icon-svg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

    .create-account-icon-svg svg {
        display: block;
        width: 32px;
        height: 32px;
        visibility: visible;
        opacity: 1;
    }

.create-account-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', 'Cairo', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
}

[dir="ltr"] .create-account-title {
    font-family: 'Cairo', sans-serif;
}

.create-account-text-field {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    display: flex;
}

.create-account-text-field-with-height {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    display: flex;
}

.create-account-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', 'Cairo', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

[dir="ltr"] .create-account-label {
    text-align: left;
    font-family: 'Cairo', sans-serif;
}

.create-account-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"] .create-account-field {
    flex-direction: row;
}

.create-account-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: 16px;
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.create-account-placeholder-small {
    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', 'Cairo', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

[dir="ltr"] .create-account-placeholder,
[dir="ltr"] .create-account-placeholder-small {
    text-align: left;
    font-family: 'Cairo', sans-serif;
}

.create-account-field-icon {
    position: relative;
}

.create-account-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', 'Cairo', sans-serif;
    font-weight: 500;
    width: 100%;
    text-align: right;
    direction: rtl;
}

[dir="ltr"] .create-account-input {
    text-align: left;
    direction: ltr;
    font-family: 'Cairo', sans-serif;
}

.create-account-input::placeholder {
    color: var(--Colors-Gray-Default, #999999);
}

.create-account-button {
    cursor: pointer;
    border: none;
}

    .create-account-button:hover {
        opacity: 0.9;
    }

    .create-account-button:active {
        opacity: 0.8;
    }

#createAccountForm {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.create-account-text-field .text-danger,
.create-account-password-field .text-danger {
    align-self: stretch;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    text-align: right;
}

[dir="ltr"] .create-account-text-field .text-danger,
[dir="ltr"] .create-account-password-field .text-danger {
    text-align: left;
}

.create-account-password-field {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    display: flex;
}

.create-account-button {
    align-self: stretch;
    height: 64px;
    padding-left: 16px;
    padding-right: 16px;
    background: var(--Primary-500, #6A5D8B);
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
}

.create-account-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', 'Cairo', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
}

[dir="ltr"] .create-account-button-text {
    text-align: left;
    font-family: 'Cairo', sans-serif;
}

.create-account-footer {
    width: 504px;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-align: center;
}

.create-account-footer-text {
    color: var(--Colors-Gray-Dark, #666666);
    font-size: 16px;
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

[dir="ltr"] .create-account-footer-text {
    font-family: 'Cairo', sans-serif;
}

.create-account-footer-link {
    color: var(--Primary-500, #6A5D8B);
    font-size: 16px;
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
    cursor: pointer;
}

[dir="ltr"] .create-account-footer-link {
    font-family: 'Cairo', sans-serif;
}

.create-account-footer-link:hover {
    text-decoration: underline;
}

.create-account-general-error {
    align-self: stretch;
    padding: 12px 16px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
}

[dir="ltr"] .create-account-general-error {
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

/* Mobile (up to 768px) */
@@media (max-width: 768px) {
    .create-account-modal {
        width: 95vw;
        max-height: 90vh;
        border-radius: 16px;
    }

    .create-account-container {
        padding: 32px 20px;
        gap: 20px;
    }

    .create-account-header {
        gap: 12px;
    }

    .create-account-icon {
        width: 64px;
        height: 64px;
        border-radius: 32px;
    }

    .create-account-icon-svg {
        width: 24px;
        height: 24px;
    }

        .create-account-icon-svg svg {
            width: 24px;
            height: 24px;
        }

    .create-account-title {
        font-size: 20px;
    }

    .create-account-text-field,
    .create-account-text-field-with-height,
    .create-account-password-field {
        gap: 10px;
    }

    .create-account-label {
        font-size: 14px;
    }

    .create-account-field {
        padding: 14px;
        border-radius: 10px;
    }

    .create-account-input {
        font-size: 14px;
    }

    .create-account-placeholder,
    .create-account-placeholder-small {
        font-size: 14px;
    }

    .create-account-field-icon {
        width: 18px;
        height: 18px;
    }

        .create-account-field-icon svg {
            width: 18px;
            height: 18px;
        }

    .create-account-button {
        height: 56px;
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 12px;
    }

    .create-account-button-text {
        font-size: 18px;
    }

    .create-account-footer {
        width: 100%;
    }

    .create-account-footer-text,
    .create-account-footer-link {
        font-size: 14px;
    }

    .create-account-general-error {
        padding: 10px 12px;
        font-size: 13px;
    }

    .create-account-modal-close {
        top: 16px;
        left: 16px;
        width: 20px;
        height: 20px;
    }

    [dir="rtl"] .create-account-modal-close {
        right: 16px;
    }

    [dir="ltr"] .create-account-modal-close {
        left: 16px;
    }

    .create-account-modal-close svg {
        width: 20px;
        height: 20px;
    }

    #createAccountForm {
        gap: 20px;
    }
}

/* Small Mobile (up to 480px) */
@@media (max-width: 480px) {
    .create-account-modal {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .create-account-container {
        padding: 24px 16px;
        gap: 16px;
        border-radius: 0;
    }

    .create-account-header {
        gap: 10px;
    }

    .create-account-icon {
        width: 56px;
        height: 56px;
        border-radius: 28px;
    }

    .create-account-icon-svg {
        width: 20px;
        height: 20px;
    }

        .create-account-icon-svg svg {
            width: 20px;
            height: 20px;
        }

    .create-account-title {
        font-size: 18px;
    }

    .create-account-text-field,
    .create-account-text-field-with-height,
    .create-account-password-field {
        gap: 8px;
    }

    .create-account-label {
        font-size: 13px;
    }

    .create-account-field {
        padding: 12px;
        border-radius: 8px;
    }

    .create-account-input {
        font-size: 13px;
    }

    .create-account-placeholder,
    .create-account-placeholder-small {
        font-size: 13px;
    }

    .create-account-field-icon {
        width: 16px;
        height: 16px;
    }

        .create-account-field-icon svg {
            width: 16px;
            height: 16px;
        }

    .create-account-button {
        height: 52px;
        padding-left: 12px;
        padding-right: 12px;
        border-radius: 10px;
    }

    .create-account-button-text {
        font-size: 16px;
    }

    .create-account-footer-text,
    .create-account-footer-link {
        font-size: 13px;
    }

    .create-account-general-error {
        padding: 8px 10px;
        font-size: 12px;
    }

    .create-account-modal-close {
        top: 12px;
        left: 12px;
        width: 18px;
        height: 18px;
    }

    [dir="rtl"] .create-account-modal-close {
        right: 12px;
    }

    [dir="ltr"] .create-account-modal-close {
        left: 12px;
    }

    .create-account-modal-close svg {
        width: 18px;
        height: 18px;
    }

    #createAccountForm {
        gap: 16px;
    }

    .create-account-text-field .text-danger,
    .create-account-password-field .text-danger {
        font-size: 11px;
    }
}
