@import url('../plugins/toastr/toastr.min.css');

.auth-flow { background: #0a0a0a; min-height: 65vh; }
.auth-card { position: relative; background: #1c1b1b; border-radius: 8px; padding: 32px; color: #d2c5ab; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#ffcc00,#c00311,#ffd700); border-radius: 8px 8px 0 0; }
.auth-flow h1, .auth-flow h2 { font-family: Montserrat,sans-serif; color: #e5e2e1; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.auth-flow h1 { font-size: clamp(28px,4vw,40px); }
.auth-flow h2 { font-size: 24px; }
.auth-flow p { line-height: 1.7; margin-bottom: 24px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.auth-field input, .auth-field textarea, .auth-field select { width: 100%; min-height: 48px; border: 1px solid #4e4632; border-radius: 4px; background: #201f1f; color: #e5e2e1; padding: 12px 16px; color-scheme: dark; }
.auth-field input:focus, .auth-field textarea:focus, .auth-field select:focus { outline: 2px solid #ffcc00; outline-offset: 2px; border-color: #ffcc00; box-shadow: none; }
.auth-field input[aria-invalid=true], .auth-field textarea[aria-invalid=true] { border-color: #ff4d4d; }
.auth-error { color: #ffb4ab; font-size: 14px; line-height: 1.5; }
.auth-error[aria-hidden=true] { display: none; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 4px; background: #ffcc00; color: #3d2f00; font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; text-align: center; }
.auth-button:hover { background: #ffedc3; }
.auth-button:focus-visible, .auth-link:focus-visible { outline: 2px solid #ffcc00; outline-offset: 4px; }
.auth-button.secondary { background: #2a2a2a; color: #e5e2e1; }
.auth-button.secondary:hover { background: #393939; }
.auth-button:disabled { opacity: .45; cursor: not-allowed; }
.auth-link { color: #ffcc00; text-underline-offset: 3px; }
.auth-link:hover { text-decoration: underline; }
.registration-step { display: none; }
.registration-step.is-active { display: block; }
@media(max-width:640px) { .auth-card { padding: 24px 20px; } .auth-actions > * { width: 100%; } }

.auth-password { position: relative; }
.auth-password input { padding-right: 56px; }
.auth-password-toggle { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 44px; display: flex; align-items: center; justify-content: center; color: #d2c5ab; border-radius: 4px; cursor: pointer; }
.auth-password-toggle:hover { color: #ffcc00; }
.auth-password-toggle:focus-visible { outline: 2px solid #ffcc00; outline-offset: -2px; }

.auth-field textarea { resize: vertical; min-height: 160px; }
.auth-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100% - 32px); overflow-y: auto; width: calc(100% - 32px); max-width: 512px; border: 0; }
.auth-dialog::backdrop { background: rgba(0, 0, 0, .7); }

.auth-button.danger { background: #c00311; color: #ffdad6; }
.auth-button.danger:hover { background: #93000a; }
