.login-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#Connect {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
    overflow-y: auto;
}

#Connect .modal-dialog {
    position: relative;
    width: 100%;
   /* max-width: 600px;
    margin: 1rem auto;*/
}

#Connect .modal-content {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(15, 25, 35, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 0;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(15, 25, 35, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
}

.tab-button {
    flex: 1;
    padding: 1.2rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(0, 255, 157, 0.05);
    color: #00ff9d;
}



.tab-icon {
    font-size: 1.2rem;
}

.modal-content {
    padding: 2rem;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #00ff9d;
    font-weight: 500;
}

.form-icon {
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #00ff9d;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: #666;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00ff9d;
}

.checkbox-label {
    color: #aaa;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0066cc, #0088ff);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 136, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
}

.footer-text {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #00ff9d;
    text-decoration: underline;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-button:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.ptxt {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00ff9d;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .tab-button {
        font-size: 0.9rem;
        padding: 1rem 0.5rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

[dir="rtl"] .form-label {
    flex-direction: row;
}

[dir="rtl"] .modal-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .ptxt {
    right: auto;
    left: 15px;
}

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

    .login-modal-overlay.hidden {
        display: none;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-modal-container {
    background: linear-gradient(135deg, rgba(35, 50, 70, 0.98), rgba(25, 40, 60, 0.98));
    border-radius: 20px;
    border: 3px solid #00ff9d;
    box-shadow: 0 0 50px rgba(0, 255, 157, 0.5), 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 650px;
    max-height: 95vh;
    overflow: visible;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .login-close-button:hover {
        background: rgba(255, 0, 0, 0.3);
        border-color: #ff0000;
        transform: rotate(90deg);
    }

.login-modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(0, 255, 157, 0.2);
}

.login-tab-button {
    flex: 1;
    padding: 1.2rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
}

    .login-tab-button:hover {
        background: rgba(0, 255, 157, 0.1);
        color: #00ff9d;
    }

    .login-tab-button.active {
        background: linear-gradient(135deg, #00ff9d, #00d4ff);
        color: #0a1628;
        box-shadow: 0 5px 15px rgba(0, 136, 255, 0.4);
        border-bottom: 3px solid #00ff9d;
    }

.login-tab-icon {
    font-size: 1.2rem;
}

.login-modal-content {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    max-height: calc(90vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

    .login-modal-content::-webkit-scrollbar {
        width: 8px;
    }

    .login-modal-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .login-modal-content::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 157, 0.3);
        border-radius: 4px;
    }

        .login-modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 255, 157, 0.5);
        }

.login-tab-content {
    display: none;
}

    .login-tab-content.active {
        display: block;
    }

.login-modal-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-modal-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.login-form-group {
    margin-bottom: 1.2rem;
}

.login-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: #00ff9d;
    font-weight: 500;
    font-size: 0.95rem;
}

.login-form-icon {
    font-size: 1.1rem;
}

.login-form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 255, 157, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
}

    .login-form-input:focus {
        outline: none;
        border-color: #00ff9d;
        box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
        background: rgba(255, 255, 255, 0.12);
    }

    .login-form-input::placeholder {
        color: #999;
        font-size: 0.9rem;
    }

.login-ptxt {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00ff9d;
    font-size: 1.2rem;
    transition: all 0.3s;
}

    .login-ptxt:hover {
        color: #00d4ff;
    }

.login-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.login-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ff9d;
}

.login-checkbox-label {
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
}

.login-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0066cc, #0088ff);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

    .login-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 136, 255, 0.4);
    }

.login-btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.5);
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
}

    .login-btn-secondary:hover {
        background: rgba(0, 212, 255, 0.1);
        border-color: #00d4ff;
    }

.login-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.login-footer-text {
    color: #aaa;
    font-size: 0.85rem;
}

.login-footer-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

    .login-footer-link:hover {
        color: #00ff9d;
        text-decoration: underline;
    }

.login-text-danger {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

@@media (max-width: 768px) {
    .login-modal-container {
        max-width: 100%;
        margin: 1rem;
    }

    .login-modal-content {
        padding: 1.5rem;
    }

    .login-tab-button {
        font-size: 0.9rem;
        padding: 1rem 0.5rem;
    }

    .login-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .login-btn-secondary {
        width: 100%;
    }
}

[dir="rtl"] .login-close-button {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .login-ptxt {
    right: auto;
    left: 15px;
}

[dir="rtl"] .login-form-label {
    flex-direction: inherit;
}

.reset-password-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0f1923 0%, #1a2332 100%);
}

.reset-password-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(15, 25, 35, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    padding: 2rem 1rem;
    animation: slideIn 0.4s ease-out;
}

.reset-password-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reset-password-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    margin-bottom: 0.5rem;
}

.reset-password-header p {
    color: #a0a8b8;
    font-size: 0.95rem;
    margin: 0;
}

.reset-password-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-password-footer a {
    color: #00ff9d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.reset-password-footer a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* Confirmation Page Styles */
.confirmation-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0f1923 0%, #1a2332 100%);
}

.confirmation-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(15, 25, 35, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    padding: 3rem 2rem;
    text-align: center;
    animation: slideIn 0.4s ease-out;
}

.confirmation-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-card h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
}

.confirmation-card p {
    color: #a0a8b8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.confirmation-link {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    border: none;
    border-radius: 10px;
    color: #0f1923;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.confirmation-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.4);
    text-decoration: none;
    color: #0f1923;
}

.confirmation-link:active {
    transform: translateY(0);
}

.confirmation-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7a8290;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input::placeholder {
    color: #7a8290;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(0, 255, 157, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.form-validation {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #00ff9d, #00d4ff);
    border: none;
    border-radius: 10px;
    color: #0f1923;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .reset-password-card,
    .confirmation-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .reset-password-header h1,
    .confirmation-card h1 {
        font-size: 1.5rem;
    }

    .confirmation-icon {
        font-size: 2.5rem;
    }

    .form-group input {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

[dir="rtl"] .reset-password-card,
[dir="rtl"] .confirmation-card {
    direction: rtl;
}