:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #203140;
  background: #edf2f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f8fb 0%, #eaf0f5 100%);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.card {
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid #dce5ed;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(13, 40, 63, 0.10);
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  background: #0a2744;
  color: #fff;
}

.brand img { flex: 0 0 auto; }
.brand-name { font-size: 18px; font-weight: 750; letter-spacing: .01em; }
.brand-subtitle { margin-top: 2px; font-size: 12px; color: #c9d9e8; }

.panel { padding: 34px 30px 30px; }
.hidden { display: none !important; }

h1 {
  margin: 0 0 14px;
  color: #122a3e;
  font-size: 25px;
  line-height: 1.25;
}

p { margin: 0 0 18px; line-height: 1.6; }
.muted { color: #657788; font-size: 14px; }

label {
  display: block;
  margin: 18px 0 7px;
  color: #213649;
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b9c7d4;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  color: #182b3c;
  background: #fff;
  outline: none;
}

input:focus {
  border-color: #1d5d93;
  box-shadow: 0 0 0 3px rgba(29, 93, 147, .14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 7px;
  background: #0b3a6f;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #082f5b; }
.button:focus-visible { outline: 3px solid rgba(29, 93, 147, .28); outline-offset: 2px; }
.button:disabled { opacity: .6; cursor: wait; }
.button.secondary { background: #eef3f7; color: #183b5b; border: 1px solid #cad7e2; }
.button.secondary:hover { background: #e5edf3; }

.inline-error {
  margin: 16px 0 4px;
  padding: 11px 13px;
  border-radius: 7px;
  background: #fff2f2;
  border: 1px solid #efc2c2;
  color: #8a2424;
  font-size: 14px;
  line-height: 1.45;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}
.status-icon.success { background: #e8f6ef; color: #1c7048; }
.status-icon.error { background: #fff0f0; color: #a62d2d; }

.spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 4px solid #dbe5ed;
  border-top-color: #0b3a6f;
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 15px 20px;
  border-top: 1px solid #e7edf2;
  color: #748493;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 520px) {
  .shell { padding: 16px 10px; }
  .panel { padding: 28px 22px 24px; }
  .brand { padding: 19px 22px; }
}
