/* Password Reset Modal Styles */
.password-reset-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 11, 25, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.password-reset-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.password-reset-content {
    background: linear-gradient(135deg, rgba(26, 22, 37, 0.9) 0%, rgba(42, 37, 55, 0.9) 100%);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 80px rgba(110, 86, 207, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-reset-modal.active .password-reset-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-body p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-reset {
    width: 100%;
    margin-top: 20px;
}

/* Email Sent Animation Styles */
.email-sent-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 11, 25, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.email-sent-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.email-sent-content {
    background: linear-gradient(135deg, rgba(26, 22, 37, 0.9) 0%, rgba(42, 37, 55, 0.9) 100%);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 80px rgba(20, 241, 149, 0.2);
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-sent-container.active .email-sent-content {
    transform: scale(1);
    opacity: 1;
}

.email-sent-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-icon {
    animation: email-float 2s ease-in-out infinite;
}

@keyframes email-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.email-sent-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.email-sent-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Media Queries for Mobile Devices */
@media (max-width: 576px) {
    .password-reset-modal {
        align-items: center;
        padding: 10px;
    }

    .password-reset-content {
        width: 95%;
        max-width: 400px;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Для плавной прокрутки на iOS */
    }

    .password-reset-modal .modal-header h2 {
        font-size: 20px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 380px) {
    .password-reset-content {
        width: 100%;
        padding: 15px;
        border-radius: 12px;
    }

    .password-reset-modal .form-group {
        margin-bottom: 15px;
    }
}

/* Light Theme Adjustments */
.light-theme .password-reset-modal,
.light-theme .email-sent-container {
    background-color: rgba(255, 255, 255, 0.9);
}

.light-theme .password-reset-content,
.light-theme .email-sent-content {
    background: linear-gradient(135deg, rgba(245, 245, 247, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
                0 0 80px rgba(110, 86, 207, 0.1);
}
