/* ===== СТРАНИЦЫ АВТОРИЗАЦИИ (login/register) ===== */

/* Auth Section */
.auth-section {
    padding: 5rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
    border: 2px solid var(--border-color);
    box-sizing: border-box;
}

.auth-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 18px;
}

.form-input {
    padding: 1rem 3rem 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.form-input.error {
    border-color: var(--danger-color);
}

/* КНОПКА ПОКАЗА ПАРОЛЯ */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--medium-gray);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: none;
    color: var(--primary-color);
}

/* Убираем стандартный фон и обводку */
.password-toggle:focus-visible {
    outline: none;
}

/* Ошибки */
.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 1rem;
}

.error-message.general-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-align: center;
    justify-content: center;
}

.success-message {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.success-message i {
    font-size: 1.2rem;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.95rem;
    color: var(--medium-gray);
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-group label:hover {
    color: var(--primary-color);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--medium-gray);
    font-size: 1rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.auth-divider span {
    background: var(--bg-white);
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    color: var(--dark-color);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 3rem 0;
        min-height: calc(100vh - 300px);
    }
    
    .auth-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-full {
        padding: 0.875rem;
    }
    
    .password-toggle {
        top: 36px;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 2rem 0;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .form-input {
        padding: 0.875rem 3rem 0.875rem 1rem;
    }
    
    .btn-full {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .auth-divider {
        margin: 1.5rem 0;
    }
    
    .password-toggle {
        top: 32px;
    }
}