.reset_modal, .success_screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset_modal.active, .success_screen.active {
    display: flex;
    opacity: 1;
}

.modal_box {
    background: #2c2c2c;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.reset_modal.active, .modal_box {
    transform: scale(1);
}

.modal_box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
}
.modal_box p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.resert_email {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #505050;
    background: #252525;
    color: white;
    margin-bottom: 10px;
    outline: none;
}

.error_msg {
    color: #e74c3c; 
    font-size: 13px;
    margin-bottom: 15px;
    min-height: 20px;
}

.forgot_pass_link {
    text-align: center;
    margin-top: 10px;
}

.forgot_pass_link a {
    color: #11ce0a;
    font-size: 13px;
}

.success_screen {
    background-color: #1a1a1a;
    z-index: 1100;
}

.success_content {
    text-align: center;
    color: white;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.confirm_button {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: 0.2s;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content:
    flex-end;
    margin-top: 10px;
}

.confirm_button.cancel {
    background: #505050;
}

.confirm_button.confirm {
    background: #11ce0a;
}