/*
Theme Name: hmanhwa
Text Domain: hmanhwa
*/

/* Basic reset and minimal styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: solid;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Модальное окно сброса пароля (в стиле сайта) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    backdrop-filter: blur(8px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.modal__content {
    position: relative;
    background: 
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.06), transparent 60%),
        #0b0e11;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-16px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 26px 26px 24px;
}

.modal.active .modal__content {
    transform: translateY(0) scale(1);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #f5f7f6;
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #8c909c;
    transition: color 0.2s, transform 0.2s;
    width: 24px;
    height: 24px;
}

.modal__close:hover {
    color: #f5f7f6;
    transform: scale(1.08);
}

.modal__body {
    color: #f5f7f6;
}

.modal__description {
    margin: 0 0 20px 0;
    color: #8c909c;
    line-height: 1.5;
    font-size: 14px;
}

.modal__message {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.modal__message--success {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.modal__message--error {
    background: rgba(255, 59, 59, 0.15);
    color: #ff3b3b;
    border: 1px solid rgba(255, 59, 59, 0.25);
}

.modal__message--info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.reset-form .form-group {
    margin-bottom: 18px;
}

.reset-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f5f7f6;
    font-size: 14px;
}

.reset-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #0f1318;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 15px;
    color: #f5f7f6;
    transition: border-color 0.22s ease-out, box-shadow 0.22s ease-out, background-color 0.22s ease-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reset-form input::placeholder {
    color: #8c909c;
}

.reset-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18);
    background: #0b1018;
}

.reset-form .btn {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.22s ease-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
}

.reset-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.reset-form .btn--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #050608;
}

.reset-form .btn--accent:hover:not(:disabled) {
    background: #282a26;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.reset-form .btn--accent:active:not(:disabled) {
    transform: scale(0.98);
}

.reset-form .btn--ghost {
    background: transparent;
    color: #8c909c;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.reset-form .btn--ghost:hover:not(:disabled) {
    background: #0f1318;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f7f6;
}

.reset-form .btn--full {
    width: 100%;
}

/* Анимация появления модального окна */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Дополнительные улучшения для мобильных устройств */
@media (max-width: 480px) {
    .modal__content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .modal__title {
        font-size: 18px;
    }
    
    .reset-form input {
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
}
