/* Модальное окно авторизации */
.auth-modal-content {
    padding: 40px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 6px;
}

.auth-modal-close:hover {
    color: #1f2937;
    background-color: #f3f4f6;
}

.auth-modal-close svg {
    width: 20px;
    height: 20px;
}

.auth-title {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 32px 0;
    text-align: center;
}

.auth-form-container,
.auth-form-container .btn {
    width: 100%;
}

.auth-form-group {
    margin-bottom: 24px;
}

/* Стили для input наследуются из common.css (.form-input) */

.auth-code-hint {
    font-size: 14px;
    color: #374151;
    margin: 8px 0 4px 0;
}

.auth-code-note {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.auth-resend-container {
    margin-top: 16px;
    text-align: center;
}

.auth-timer {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.auth-consent {
    margin-top: 20px;
    margin-bottom: 20px;
}

.auth-consent .consent-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-consent .consent-info-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.auth-consent .consent-info-text a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.auth-consent .consent-info-text a:hover {
    text-decoration-color: #000;
}

.auth-consent .consent-link {
    font-size: 14px;
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
    align-self: flex-start;
}

.auth-consent .consent-link:hover {
    text-decoration-color: #000;
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.auth-actions-container {
    gap: 10px;
    display: flex;
}

.oauth-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

.oauth-icon {
    display: block;
    width: auto;
    height: 40px;
}

/* Мобильная адаптация - полноэкранный режим */
@media (max-width: 768px) {
    .auth-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .auth-modal-close {
        top: 12px;
        right: 12px;
    }
    
    .auth-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

@keyframes authModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {

}

