﻿/* Страница регистрации */

.auth-page {
    max-width: 460px;
    margin: 0 auto;
    padding-top: 12px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.auth-title {
    margin: 0 0 6px;
    font-size: var(--text-xl);
    font-weight: 700;
}

.auth-subtitle {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: var(--text-sm);
}

/* Заголовки секций */
.section-label {
    margin: 0 0 12px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

/* Разделитель между секциями */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

/* Подсказка «Не нашли компанию?» */
.org-manual-hint {
    display: block;
    margin-top: 6px;
    font-size: var(--text-xs);
    color: var(--muted);
}

/* Звёздочка обязательного поля */
.field label .required-mark { color: var(--danger, #dc2626); }

/* Ошибки скрытых полей */
.org-field-errors { margin-top: 4px; }

/* Глазок (для password_toggle.js) */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 40px; }

.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    line-height: 1;
}

.pwd-toggle:hover { color: var(--text); }

/* Кнопка и оферта */
.auth-actions { margin-top: 16px; }

/* На странице регистрации кнопка занимает всю ширину */
.auth-actions .tms-btn {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.oferta-text {
    margin: 10px 0 0;
    font-size: var(--text-xs);
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.oferta-text a {
    color: var(--text);
    text-decoration: underline;
}

.oferta-text a:hover { color: var(--text); }

/* Футер карточки */
.auth-footer {
    margin-top: 14px;
    color: var(--muted);
    font-size: var(--text-sm);
    text-align: center;
}

.auth-footer--tight {
    margin-top: 8px;
}

.auth-card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-card-link:hover { text-decoration: underline; }

.auth-back-link {
    color: var(--muted);
    font-size: var(--text-xs);
    text-decoration: none;
}

.auth-back-link:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 520px) {
    .auth-card { padding: 14px; }
}
