/* ========================================================================
   BOTIX — Стили входной группы клиента (auth pages)
   Единый стиль по docs/BRANDBOOK.md (раздел «Формы»)
   Применяется на: /register, /login, /forgot-password, /reset-password,
                    /verify-email-sent, /verify-email (message.php)
   ======================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-secondary, #f5f5f7);
}

.auth-card {
    background: var(--bg-card, #fff);
    border-radius: 14px;
    border: 1px solid rgba(60, 60, 67, .08);
    box-shadow: none;
    padding: 28px 24px;
    width: 360px;
    max-width: 100%;
}

.auth-card .auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 12px !important;
}
.auth-card .auth-logo img,
.auth-card .auth-logo .logo-img,
.auth-card .auth-logo .logo-img-lg,
.auth-card .auth-logo .logo-img-md,
.auth-card .auth-logo .logo-img-sm {
    height: 36px;
    width: auto;
    max-height: 36px;
    max-width: 140px;
    display: inline-block;
}

.auth-card h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 8px 0 4px !important;
    text-align: center;
    letter-spacing: -0.3px;
}

.auth-card .subtitle {
    font-size: 13px !important;
    color: var(--text-secondary, #6e6e73);
    margin: 0 0 16px !important;
    text-align: center;
}

.auth-card .form-group {
    margin-bottom: 8px;
}
.auth-card .form-group label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 3px;
    color: #a1a1a6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-card .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border, #d2d2d7);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1d1d1f);
    transition: border-color .15s;
}
.auth-card .form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-card .btn {
    width: 100%;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    transition: opacity .15s;
}
.auth-card .btn:hover { opacity: .9; }
.auth-card .btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-card .btn-primary { background: var(--primary); color: #fff; }

.auth-card .auth-footer {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-secondary, #6e6e73);
}
.auth-card .auth-footer a {
    color: var(--primary);
    text-decoration: none;
}
.auth-card .auth-footer + .auth-footer {
    margin-top: 6px;
}

/* Иконка статуса (письмо / успех / ошибка) — для verify-email-sent и message */
.auth-card .status-icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.auth-card .status-icon.info    { background: rgba(0, 122, 255, .1); color: var(--primary); }
.auth-card .status-icon.success { background: rgba(52, 199, 89, .1); color: #34C759; }
.auth-card .status-icon.error   { background: rgba(255, 59, 48, .1); color: #FF3B30; }

/* Плашка с email пользователя */
.auth-card .email-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary, #f5f5f7);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin: 4px 0 12px;
    word-break: break-all;
    color: var(--text-primary, #1d1d1f);
}

/* Подсказка-блок (про папку «Спам» и т.п.) */
.auth-card .hint-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-secondary, #f5f5f7);
    border-radius: 8px;
    color: var(--text-secondary, #6e6e73);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}
.auth-card .hint-box i {
    color: var(--primary);
    margin-right: 6px;
}

/* Алерты внутри карточки */
.auth-card .alert {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}
.auth-card .alert-error   { background: #FEE2E2; color: #DC2626; }
.auth-card .alert-success { background: #D1FAE5; color: #047857; }

.auth-card .text-center { text-align: center; }
.auth-card .muted {
    color: var(--text-secondary, #6e6e73);
    font-size: 13px;
}

.auth-card .captcha-wrap {
    margin: 4px 0 8px;
}

/* Honeypot для форм с защитой от ботов */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Callcheck — кликабельный номер и акцент-плашка («Звонок бесплатный, даже в роуминге») */
.auth-card .cc-num {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .5px;
    margin: 0 0 14px;
    color: var(--primary, #007AFF);
}
.auth-card .cc-num a {
    color: var(--primary, #007AFF);
    text-decoration: none;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background .15s;
}
.auth-card .cc-num a:hover { background: rgba(0, 122, 255, .08); }

.auth-card .cc-info {
    background: rgba(52, 199, 89, .08);
    border-radius: 12px;
    padding: 14px 14px 14px 44px;
    margin: 0 0 16px;
    position: relative;
    line-height: 1.5;
    font-size: 13px;
    color: var(--text-primary, #1d1d1f);
}
.auth-card .cc-info::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 22px;
    height: 22px;
    background: #34C759;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}
.auth-card .cc-info b {
    display: block;
    color: #1D7B47;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
