:root {
  --bg: #f6fbff;
  --panel: #ffffff;
  --line: #d7e8f7;
  --text: #102538;
  --muted: #6c8194;
  --blue: #1d9bf0;
  --blue-dark: #0b75c9;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(19, 87, 135, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(223, 242, 255, 0.7), rgba(246, 251, 255, 0)),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

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

.login-card {
  width: min(440px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle,
.form p,
.field span {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

p {
  margin: -8px 0 4px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.12);
}

button {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

button:hover {
  background: var(--blue-dark);
}

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

.error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
}
