body.auth-page { min-height: 100vh; background: linear-gradient(145deg, #dff4ff 0%, #f7fcff 47%, #e8f8e7 100%); }
body.auth-page .page { width: 100%; min-height: 100vh; margin: 0; padding: 0; }
body.auth-page .sound-toggle, body.auth-page .app-version { display: none; }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 32px 20px; box-sizing: border-box; }
.auth-card { position: relative; width: min(430px, 100%); padding: 39px 42px 34px; border: 1px solid rgba(171, 215, 239, .9); border-radius: 30px; background: rgba(255,255,255,.91); box-shadow: 0 24px 54px rgba(34, 104, 157, .18); box-sizing: border-box; text-align: center; }
.auth-back { position: absolute; top: 18px; left: 21px; color: #4381ba; font-size: 13px; font-weight: 800; text-decoration: none; }
.auth-mascot { width: 76px; height: 76px; margin-top: 5px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 18px rgba(47, 124, 80, .18); }
.auth-brand { margin: 9px 0 2px; color: #2f9151; font-size: 16px; font-weight: 900; letter-spacing: .12em; }
.auth-card h1 { margin: 7px 0 8px; color: #18395e; font-size: 28px; line-height: 1.2; }
.auth-subtitle { margin: 0 0 21px; color: #6b8198; font-size: 14px; line-height: 1.55; }
.auth-message { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #fff0ed; color: #bf4c3b; font-size: 13px; font-weight: 800; }
.auth-message[hidden] { display: none; }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-form label { display: grid; gap: 7px; color: #49627e; font-size: 13px; font-weight: 800; }
.auth-form input { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid #cde2f2; border-radius: 12px; background: #f8fcff; color: #203c59; font: inherit; box-sizing: border-box; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.auth-form input:focus { border-color: #59a7e5; box-shadow: 0 0 0 3px rgba(89,167,229,.16); }
.auth-form button { min-height: 47px; margin-top: 5px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #3d90eb, #2468d8); box-shadow: 0 9px 17px rgba(39, 103, 207, .23); color: #fff; font: inherit; font-weight: 900; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; }
.auth-form button:hover { box-shadow: 0 12px 21px rgba(39,103,207,.29); transform: translateY(-1px); }
.auth-form[data-login-form] > label[for="login-password"] { margin-bottom: -7px; }
.auth-password-field { position: relative; display: block; min-width: 0; }
.auth-password-field input { padding-right: 52px; }
.auth-form .auth-password-toggle { position: absolute; inset: 0 0 0 auto; width: 46px; min-height: 44px; margin: 0; padding: 0; display: grid; place-items: center; border-radius: 12px; background: transparent; color: #49627e; box-shadow: none; transform: none; transition: background-color 120ms ease; }
.auth-form .auth-password-toggle:hover { background: #e8f3fa; box-shadow: none; transform: none; }
.auth-form .auth-password-toggle:focus-visible { outline: 2px solid #2779ce; outline-offset: -3px; }
.auth-password-toggle[hidden], .auth-password-toggle [hidden] { display: none; }
.auth-form[data-login-form] button[type="submit"]:disabled { opacity: .7; cursor: wait; box-shadow: none; transform: none; }
.auth-field-help, .auth-sms-message, .auth-dev-note { margin: -7px 0 0; font-size: 12px; line-height: 1.45; }
.auth-field-help { color: #7b91a8; }
.auth-code-row { display: flex; gap: 9px; align-items: center; }
.auth-code-row input { min-width: 0; flex: 1; }
.auth-form .auth-sms-button { width: 108px; min-width: 108px; min-height: 45px; margin: 0; padding: 0 8px; border: 1px solid #a8d7fa; background: #eaf6ff; box-shadow: none; color: #2779ce; font-size: 13px; }
.auth-form .auth-sms-button:hover:not(:disabled) { background: #dff2ff; box-shadow: none; transform: translateY(-1px); }
.auth-form .auth-sms-button:disabled { cursor: not-allowed; border-color: #d8e4ee; background: #f1f5f8; color: #91a3b2; box-shadow: none; transform: none; }
.auth-sms-message { min-height: 17px; color: #2679c9; font-weight: 800; }
.auth-sms-message.is-error { color: #bf4c3b; }
.auth-dev-note { padding: 8px 10px; border: 1px dashed #a9d6f2; border-radius: 10px; background: #f1faff; color: #4381ba; }
.auth-switch { margin: 20px 0 0; color: #72869d; font-size: 13px; font-weight: 700; }.auth-switch a { margin-left: 5px; color: #2878d4; font-weight: 900; text-decoration: none; }
@media (max-width: 480px) { .auth-shell { padding: 18px 14px; }.auth-card { padding: 42px 24px 28px; border-radius: 24px; }.auth-card h1 { font-size: 25px; }.auth-form .auth-sms-button { width: 100px; min-width: 100px; font-size: 12px; } }

.guest-form { margin-top: 12px; }
.guest-button { width: 100%; min-height: 44px; border: 1px solid #8bd59a; border-radius: 12px; background: #e8f8e9; color: #286c36; font-weight: 700; cursor: pointer; }
.guest-button:hover { background: #d9f3df; }
.guest-button:focus-visible { outline: 3px solid #257642; outline-offset: 2px; }
