<section class="auth-modal-layer" id="authModal" data-auth-screen="login" aria-hidden="true" inert>
<div class="auth-modal-dialog" role="dialog" aria-modal="true" aria-label="Авторизация">
<button class="auth-close" type="button" aria-label="Закрыть" data-auth-close>
<svg viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="m4.5 4.5 7 7m0-7-7 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
</svg>
</button>
<img class="auth-logo" src="/assets/logo.svg" alt="PlayPapa" />
<section class="auth-view auth-view-login" aria-label="Вход">
<h2>С возвращением!</h2>
<div class="auth-tabs" role="tablist" aria-label="Авторизация">
<button class="auth-tab" type="button" role="tab" data-auth-screen-target="login">Вход</button>
<button class="auth-tab" type="button" role="tab" data-auth-screen-target="register">Регистрация</button>
</div>
<form class="auth-form" data-auth-form="login">
<input type="hidden" name="redirect" value="" data-auth-return />
<label class="auth-field">
<img src="/assets/auth-user.svg" alt="" />
<input type="text" name="login" placeholder="Логин" autocomplete="username" />
</label>
<label class="auth-field">
<img src="/assets/auth-lock.svg" alt="" />
<input type="password" name="password" placeholder="Пароль" autocomplete="current-password" />
</label>
<button class="auth-link auth-forgot" type="button" data-auth-screen-target="recover">Забыли пароль?</button>
<button class="auth-primary" type="submit">Войти</button>
</form>
</section>
<section class="auth-view auth-view-register" aria-label="Регистрация">
<h2>Создание аккаунта</h2>
<div class="auth-tabs" role="tablist" aria-label="Авторизация">
<button class="auth-tab" type="button" role="tab" data-auth-screen-target="login">Вход</button>
<button class="auth-tab" type="button" role="tab" data-auth-screen-target="register">Регистрация</button>
</div>
<form class="auth-form" data-auth-form="register">
<input type="hidden" name="redirect" value="" data-auth-return />
<label class="auth-field">
<img src="/assets/auth-user.svg" alt="" />
<input type="text" name="register-login" placeholder="Логин" autocomplete="username" />
</label>
<label class="auth-field">
<img src="/assets/auth-mail.svg" alt="" />
<input type="email" name="register-email" placeholder="E-mail" autocomplete="email" />
</label>
<label class="auth-field">
<img src="/assets/auth-lock.svg" alt="" />
<input type="password" name="register-password" placeholder="Пароль" autocomplete="new-password" />
</label>
<label class="auth-field">
<img src="/assets/auth-lock.svg" alt="" />
<input type="password" name="register-password-repeat" placeholder="Повторите пароль" autocomplete="new-password" />
</label>
<label class="auth-consent">
<input type="checkbox" checked />
<span aria-hidden="true"></span>
<b>Я принимаю <a href="#">условия</a> и <a href="#">политику конфиденциальности</a>.</b>
</label>
<button class="auth-primary" type="submit">Создать аккаунт</button>
</form>
</section>
<section class="auth-view auth-view-recover" aria-label="Восстановление пароля">
<button class="auth-back" type="button" data-auth-screen-target="login">
<svg viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M10.5 3.5 6 8l4.5 4.5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>Назад ко входу</span>
</button>
<h2>Восстановление пароля</h2>
<p class="auth-subtitle">Введите e-mail - пришлем ссылку для сброса пароля.</p>
<form class="auth-form" data-auth-form="recover">
<label class="auth-field">
<img src="/assets/auth-mail.svg" alt="" />
<input type="email" name="recover-email" placeholder="you@mail.ru" autocomplete="email" />
</label>
<button class="auth-primary" type="submit">Отправить ссылку</button>
</form>
</section>
<section class="auth-view auth-view-success" aria-label="Письмо отправлено">
<div class="auth-status auth-status-success"><img src="/assets/auth-check.svg" alt="" /></div>
<h2>Проверьте почту</h2>
<p class="auth-message">Мы отправили ссылку для сброса пароля на <strong>you@mail.ru</strong>. Перейдите по ней, чтобы задать новый пароль.</p>
<button class="auth-text-action" type="button" data-auth-screen-target="recover">Не пришло письмо? Отправить повторно</button>
<button class="auth-secondary" type="button" data-auth-screen-target="login">Вернуться ко входу</button>
</section>
<section class="auth-view auth-view-error" aria-label="Ошибка отправки">
<div class="auth-status auth-status-error"><img src="/assets/auth-error.svg" alt="" /></div>
<h2>Не удалось отправить</h2>
<p class="auth-message">Письмо не отправлено - возможно, неверный адрес или проблема со связью. Проверьте e-mail и попробуйте снова.</p>
<button class="auth-primary" type="button" data-auth-screen-target="recover">Попробовать снова</button>
<button class="auth-support" type="button">Написать в поддержку</button>
</section>
</div>
</section>