/**
 * Файл: assets/css/auth.css
 * Стили для страниц авторизации, регистрации и профиля
 */

:root {
    --gold: #FFD700;
    --dark-gold: #DAA520;
    --blood-red: #8B0000;
    --royal-blue: #4169E1;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(15, 15, 25, 0.9);
}

/* === КОНТЕЙНЕР АВТОРИЗАЦИИ === */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 
        0 0 30px rgba(255,215,0,0.2),
        inset 0 0 30px rgba(0,0,0,0.5);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card h1 {
    color: var(--gold);
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    margin: 0 0 10px;
    text-shadow: 0 0 10px rgba(255,215,0,0.6);
}

.auth-subtitle {
    text-align: center;
    color: #aaa;
    margin: 0 0 30px;
    font-size: 0.95rem;
}

/* === ФОРМА === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--gold);
    color: #e0e0e0;
    padding: 12px 15px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFE135;
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
    background: rgba(0,0,0,0.7);
}

.form-group small {
    color: #888;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* === ЧЕКБОКСЫ И РАДИО === */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.form-checkbox input[type="checkbox"],
.form-checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

.form-checkbox a {
    color: var(--gold);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* === КНОПКА ОТПРАВКИ === */
.btn-submit {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #FFE135 0%, var(--gold) 100%);
    box-shadow: 0 0 30px rgba(255,215,0,0.6);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* === ПОМОЩЬ ДЛЯ ВХОДА === */
.form-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.form-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ddd;
    cursor: pointer;
    margin: 0;
}

.form-remember a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s;
}

.form-remember a:hover {
    color: #FFE135;
    text-shadow: 0 0 5px rgba(255,215,0,0.6);
}

/* === СООБЩЕНИЯ === */
.error-box {
    background: rgba(139,0,0,0.2);
    border: 2px solid #8B0000;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.error-item {
    color: #ff9999;
    margin: 8px 0;
    font-size: 0.95rem;
}

.error-item:first-child {
    margin-top: 0;
}

.error-item:last-child {
    margin-bottom: 0;
}

.success-message {
    background: rgba(74,222,128,0.2);
    border: 2px solid #4ade80;
    color: #4ade80;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* === ССЫЛКА НА ДРУГУЮ СТРАНИЦУ === */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,215,0,0.2);
}

.auth-footer p {
    color: #aaa;
    margin: 0;
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.auth-footer a:hover {
    color: #FFE135;
    text-shadow: 0 0 5px rgba(255,215,0,0.6);
}

/* === ПРОФИЛЬ === */
.profile-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.profile-container h1 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(255,215,0,0.4);
}

/* === ТАБЛИЦЫ ПРОФИЛЯ === */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255,215,0,0.2);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

.tab-btn:hover {
    color: var(--gold);
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    text-shadow: 0 0 5px rgba(255,215,0,0.6);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === КАРТОЧКА ПРОФИЛЯ === */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(255,215,0,0.1);
}

.profile-card h2 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.profile-card h3 {
    color: var(--gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    padding-bottom: 10px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.profile-item:last-of-type {
    border-bottom: none;
}

.profile-item strong {
    color: var(--gold);
    min-width: 150px;
}

.profile-item span {
    color: #ddd;
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-online {
    background: rgba(74,222,128,0.2);
    color: #4ade80;
}

.status-away {
    background: rgba(251,191,36,0.2);
    color: #fbbf24;
}

.status-offline {
    background: rgba(100,116,139,0.2);
    color: #cbd5e1;
}

/* === ФОРМА ПРОФИЛЯ === */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.profile-form .form-group {
    margin-bottom: 0;
}

.profile-form textarea {
    resize: vertical;
    min-height: 100px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255,215,0,0.2);
    margin: 30px 0;
}

/* === НАСТРОЙКИ === */
.settings-item {
    padding: 15px;
    background: rgba(255,215,0,0.05);
    border-left: 3px solid var(--gold);
    margin-bottom: 10px;
    border-radius: 4px;
}

.settings-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    color: #ddd;
}

.settings-item input[type="checkbox"] {
    accent-color: var(--gold);
    cursor: pointer;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
    }
    
    .profile-container {
        padding: 10px;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .profile-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .profile-item span {
        text-align: left;
        margin-left: 150px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px 15px;
        border-width: 1px;
    }
    
    .auth-card h1 {
        font-size: 1.3rem;
    }
    
    .form-remember {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .profile-card {
        padding: 15px;
    }
}