.auth-screen {
  --auth-primary: #04337B;
  --auth-secondary: #021E4A;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  background: #f7f8fb;
}
.auth-screen.theme-dark {
  background: #10151c;
  color: #e8ebf0;
}
.auth-brand { text-align: center; padding: 0.5rem 1rem 1.25rem; }
.auth-brand-logo {
  display: inline-block;
  width: auto;
  max-width: min(240px, 68vw);
  max-height: 96px;
  height: auto;
  object-fit: contain;
}
.auth-logo-wrap { text-align: center; padding: 8px 0 16px; }
.auth-logo-wrap .auth-brand-logo {
  width: clamp(160px, 42vw, 320px);
  max-width: 100%;
}
.auth-mark {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.auth-name { margin: 0.9rem 0 0; color: var(--auth-secondary); font-size: 1.35rem; font-weight: 700; }
.theme-dark .auth-name { color: #fff; }
.auth-tagline { margin: 0.35rem 0 0; color: #6b7280; }
.auth-form { width: min(100%, 380px); margin: 0 auto; text-align: center; }
.auth-form h2 { margin-bottom: 1.25rem; font-size: 1.75rem; }
.auth-form .form-control { min-height: 46px; border-radius: 10px; }
.auth-form .btn-primary {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
}
.auth-form .btn-primary:hover,
.auth-form .btn-primary:focus {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
  filter: brightness(0.92);
}
.auth-form a,
.auth-foot a { color: var(--auth-primary); }
.auth-foot { text-align: center; margin-top: 1.75rem; color: #6b7280; font-size: 0.92rem; }
.theme-dark .auth-form .form-control {
  background: #161d26;
  color: #e8ebf0;
  border-color: #2a3441;
}
@media (min-width: 768px) {
  .auth-brand { padding: 1rem 1.5rem; }
  .auth-brand-logo { max-width: 280px; max-height: 120px; }
  .auth-logo-wrap .auth-brand-logo { width: min(360px, 38vw); }
}
@media (min-width: 1200px) {
  .auth-logo-wrap .auth-brand-logo { width: min(400px, 32vw); }
}
@media (max-width: 767.98px) {
  .auth-screen { align-items: flex-start; padding-top: 2rem; }
  .auth-form h2 { font-size: 1.5rem; }
}