/* ============================================
   МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ
   ============================================ */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal__content {
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 24px;
    width: 420px;
    max-width: 90%;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.auth-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.auth-modal__close:hover {
    color: #ffd700;
}

.auth-modal__title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 24px;
}

.auth-form__group {
    margin-bottom: 20px;
}

.auth-form__label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-size: 13px;
}

.auth-form__input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.auth-form__input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

.auth-form__btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.auth-form__switch {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
    font-size: 13px;
}

.auth-form__switch a {
    color: #ffd700;
    text-decoration: none;
    cursor: pointer;
}

.auth-form__switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    color: #ff8a80;
    font-size: 13px;
    text-align: center;
}

.auth-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    color: #a5d6a7;
    font-size: 13px;
    text-align: center;
}