:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef4f6;
  color: #102a3a;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(26, 124, 142, 0.14), transparent 34rem),
    linear-gradient(145deg, #f8fbfc 0%, #e7f0f3 100%);
}

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

.login-card {
  width: min(100%, 430px);
  padding: clamp(28px, 7vw, 44px);
  border: 1px solid rgba(16, 42, 58, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(17, 52, 70, 0.16);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: #126f80;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 8px;
  color: #126f80;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  letter-spacing: -0.04em;
}

.intro {
  margin: 12px 0 28px;
  color: #58707d;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #263f4d;
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bdcdd4;
  border-radius: 11px;
  background: #ffffff;
  color: #102a3a;
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 111, 128, 0.24);
  outline-offset: 2px;
}

button {
  min-height: 50px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  background: #126f80;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #0c5a68;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.message {
  min-height: 22px;
  margin: 0;
  color: #58707d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.message.error {
  color: #a1261d;
}

.message.success {
  color: #147545;
}

.security-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e1eaed;
  color: #71858f;
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .login-shell {
    align-items: stretch;
    padding: 0;
  }

  .login-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
