/* Authentication layout; colors and base components come from styles.css. */
.auth-shell { min-height: 100vh; }
.auth-nav { flex-shrink: 0; }
.auth-nav .brand { text-decoration: none; }
.auth-nav nav a { display: flex; align-items: center; gap: 8px; }
.auth-nav svg { width: 18px; height: 18px; }
.language-selector { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.language-selector select {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #5c7471;
  border-radius: 6px; background: #0f2f2d; color: #d7e6e4; font: inherit;
}
.auth-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.auth-main { display: flex; flex: 1; align-items: center; justify-content: center; padding: 32px; }
#login-signup.login-card { width: min(460px, 100%); margin: 0; padding: 28px; gap: 0; border-radius: 10px; }
.login-form-intro { margin-bottom: 24px; }
.login-form-intro h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; line-height: 1.35; }
.login-form-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
#login-signup label { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--ink); }
#login-signup input:not([type=hidden]) { display: block; width: 100%; height: 44px; margin-top: 8px; }
.login-password-wrapper { position: relative; display: block; }
#login-signup .login-password-wrapper input { padding-right: 48px; }
.login-password-toggle {
  position: absolute; right: 3px; top: 3px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.login-password-toggle:hover { color: var(--accent); background: var(--bg); }
.login-password-toggle svg { width: 20px; height: 20px; }
.buttons-wrapper { display: flex; gap: 12px; margin: 16px 0; }
.buttons-wrapper .button { flex: 1; min-height: 44px; justify-content: center; font-family: inherit; }
.buttons-wrapper .button.secondary { background: var(--card); color: var(--accent-dark); }
.buttons-wrapper .button.secondary:hover { background: var(--bg); }
.button > svg { width: 18px; height: 18px; flex-shrink: 0; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.auth-separator { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12px; }
.auth-separator::before, .auth-separator::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.forgot-password, .auth-content footer a { color: var(--accent); text-decoration: none; }
.forgot-password { display: inline-block; font-size: 14px; }
.forgot-password:hover, .auth-content footer a:hover { text-decoration: underline; }
.auth-error { color: #8b2c25; font-size: 13px; }
.auth-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-content footer { padding: 12px 24px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.auth-content footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; overflow-wrap: anywhere; }
.auth-content footer p span { padding: 0 4px; }
.auth-shell :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-nav :focus-visible { outline-color: #d7e6e4; }
@media (max-width: 760px) {
  .auth-shell { flex-direction: column; }
  .auth-shell .auth-nav { width: 100%; padding: 18px 20px; gap: 12px; }
  .auth-nav nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .auth-nav .nav-footer { margin-top: 0; }
  .language-selector { flex-direction: row; align-items: center; }
  .language-selector select { width: auto; }
  .auth-main { padding: 24px 16px; }
  #login-signup.login-card { padding: 24px 20px; }
  .buttons-wrapper { gap: 8px; }
}
