/* Страницы входа, регистрации и восстановления пароля (отдельные документы
   движка, мимо main.tpl) — 27.09.2026. Палитра — переменные темы
   (светлая / .dt-is-active тёмная). */
body.auth-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 18px; padding: 40px 16px; box-sizing: border-box; background: var(--bg-darker); color: var(--tt); font-family: 'Circe', sans-serif; }
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-logo { font-size: 28px; }
.auth { width: 100%; max-width: 440px; background: var(--bg); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.auth--wide { max-width: 620px; }
.auth__head { padding: 26px 28px 22px; background: var(--bgsm1); color: #fff; }
.auth__step { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.auth__title { margin: 0; font-size: 24px; font-weight: 700; }
.auth__subtitle { margin: 6px 0 0; font-size: 14px; font-weight: 400; line-height: 1.45; opacity: .9; }
.auth__body { padding: 24px 28px 26px; }
.auth__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 7px 2px; font-size: 13px; font-weight: 700; color: var(--tt-fade); }
.auth__label a { font-weight: 400; color: var(--accent); text-decoration: none; }
.auth__hint { font-weight: 400; font-size: 12px; }
.auth__hint.ok { color: #27ae60; }
.auth__hint.bad { color: #e74c3c; }
.auth__field { position: relative; margin-bottom: 16px; }
.auth__field > .fal { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tt-fade); pointer-events: none; }
.auth__input, .auth-page select, .auth-page textarea { width: 100%; height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--bg-darker);
	color: var(--tt); box-shadow: inset 0 0 0 1px var(--bdc); font: inherit; font-size: 15px; font-weight: 400; }
.auth__field > .fal + .auth__input { padding-left: 44px; }
.auth-page textarea { height: auto; min-height: 100px; padding: 12px 16px; resize: vertical; line-height: 1.45; }
.auth__input:focus, .auth-page select:focus, .auth-page textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.auth__grid .auth__field { margin: 0; display: grid; gap: 7px; }
.auth__grid label { font-size: 13px; font-weight: 700; color: var(--tt-fade); }
.auth__field--wide { grid-column: 1 / -1; }
.auth__captcha { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.auth__captcha img { border-radius: 10px; cursor: pointer; background: #fff; flex-shrink: 0; }
.auth__captcha .auth__input { margin: 0; }
.auth__captcha-refresh { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 10px; background: var(--bg-darker); color: var(--tt); font-size: 20px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--bdc); }
.auth__remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 20px; font-size: 14px; font-weight: 400; cursor: pointer; }
.auth__remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth__btn, .auth__submit { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 16px;
	font-weight: 700; cursor: pointer; transition: filter .2s; }
.auth__btn:hover, .auth__submit:hover { filter: brightness(1.1); }
.auth__actions { display: flex; align-items: center; gap: 14px; }
.auth__actions .auth__submit { flex: 1; }
.auth__skip { color: var(--tt-fade); text-decoration: none; font-weight: 700; white-space: nowrap; }
.auth__skip:hover { color: var(--accent); }
.auth__error { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(231,76,60,.12); color: #e74c3c; font-size: 14px; font-weight: 700; }
.auth__done { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(46,204,113,.14); color: #27ae60; font-size: 14px; font-weight: 700; }
.auth__foot { margin-top: 18px; text-align: center; font-size: 14px; font-weight: 400; color: var(--tt-fade); }
.auth__foot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth__note { max-width: 440px; text-align: center; font-size: 12px; font-weight: 400; color: var(--tt-fade); line-height: 1.5; }
.auth-home { font-size: 14px; color: var(--tt-fade); text-decoration: none; }
.auth-home:hover { color: var(--accent); }
@media (max-width: 520px) { .auth__grid { grid-template-columns: 1fr; } .auth__head, .auth__body { padding-left: 20px; padding-right: 20px; } }

/* jut-su.net (30.09.2026): в стиле сайта — Montserrat, чёрный фон, карточка как
   шапка сайта, градиент #FF30AC→#C882FF, поля и кнопки «таблетками» */
body.auth-page { font-family: 'montserrat', sans-serif; background: #f0f0f0; --auth-card: #fff; --auth-input: #f0f0f0; }
body.auth-page.dt-is-active { background: #0c0c0c; --auth-card: #1e1e1e; --auth-input: #363636; --bdc: transparent; }
.auth { background: var(--auth-card); border-radius: 20px; box-shadow: 0 0 50px rgba(0,0,0,.1); }
.dt-is-active .auth { box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.auth__head, .dt-is-active .auth__head { background: var(--gradient); }
.auth__title { font-weight: 700; font-size: 22px; }
.auth__subtitle { font-weight: 500; font-size: 13px; }
.auth__label, .auth__grid label { font-weight: 600; font-size: 12px; }
.auth__label a, .auth__foot a { color: var(--accent); font-weight: 600; }
.auth__input, .auth-page select, .auth-page textarea { height: 50px; border-radius: 25px; padding: 0 20px; background: var(--auth-input);
	box-shadow: none; font-size: 14px; font-weight: 500; }
.auth-page textarea { border-radius: 20px; padding: 14px 20px; }
.auth__input::placeholder { color: var(--tt-fade); }
.auth__input:focus, .auth-page select:focus, .auth-page textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.auth__captcha img { border-radius: 25px; height: 50px; }
.auth__captcha-refresh { width: 50px; height: 50px; border-radius: 50%; background: var(--auth-input); box-shadow: none; }
.auth__btn, .auth__submit { height: 50px; border-radius: 25px; background: var(--bg-btn); box-shadow: var(--bsh-btn); font-weight: 600; font-size: 15px; }
.auth__remember { font-weight: 500; font-size: 13px; }
.auth__foot, .auth__note, .auth-home { font-weight: 500; }
.auth-home:hover, .auth__skip:hover { color: var(--accent); }
/* логотип — как в шапке сайта: «JUT-SU» и плашка «.net» в одну строку */
.auth-page .auth-logo.jutsu-header__logo { display: flex; width: max-content; margin: 0 auto 6px; height: 36px; font-size: 22px; gap: 8px; color: var(--tt); text-decoration: none; }
.auth-page .auth-logo.jutsu-header__logo span:last-child { width: 60px; height: 36px; font-size: 14px; }

/* вход через Telegram (служба jutsunet-tg-login) — таблетка, как остальные кнопки */
.auth__tg { margin-top: 12px; }
.auth__tg:empty { display: none; }
.auth__tg .btn-tg { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 25px; background: #2aabee; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.auth__tg .btn-tg:hover { background: #1d97d6; color: #fff; }
.auth__tg .btn-tg svg { flex: none; }
.auth__tg .settings__hint { margin-top: 8px; font-size: 12px; text-align: center; color: var(--tt-fade); }
