:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --line: #dde4eb;
  --text: #17253a;
  --muted: #6c7685;
  --primary: #ff3410;
  --primary-2: #e74d2d;
  --shadow: none;
  font-family: "IBM Plex Sans", "Aptos", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 90%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

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

.login-card {
  display: grid;
  justify-items: center;
  width: min(440px, 100%);
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  margin-bottom: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.login-logo img {
  width: auto;
  max-width: 100%;
  max-height: 150px;
  height: auto;
  display: block;
  object-fit: contain;
}

.login-copy,
.login-card h1 {
  margin: 0;
}

.login-card h1 {
  margin-top: 4px;
  font-size: 1.9rem;
  line-height: 1.05;
  font-weight: 700;
  color: #16304f;
}

.login-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
  max-width: 34ch;
}

.login-form {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 24px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-field input {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cfd7e1;
  border-radius: 0;
  background: #fbfcfd;
  color: var(--text);
}

.login-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 2px 0 0 var(--primary);
}

.login-status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.login-status.is-error {
  color: #b5473c;
}

.login-status.is-success {
  color: #0f8f67;
}

.login-button {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 640px) {
  html {
    font-size: 100%;
  }

  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 16px;
  }
}
