:root {
  --brand: #2e6fd0;
  --brand-dark: #1e4c8f;
  --ink: #22324b;
  --text: #2b3440;
  --muted: #737f90;
  --line: #e4e8ef;
  --bad: #d83a3f;
  --bad-bg: #fde8e8;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #16233a, #0e1726);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 38px 36px 32px;
  width: 100%;
  max-width: 400px;
}
.logo {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: center;
  margin-bottom: 20px;
}
.logo .mark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo .mark .a {
  color: var(--brand);
}
.logo .mark .b {
  color: var(--ink);
}
.logo .sub {
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}
h2 {
  text-align: center;
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}
.sub-h {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  height: 46px;
  padding: 0 14px;
  transition: 0.15s;
}
.input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 111, 208, 0.12);
}
.input svg {
  flex: none;
  color: var(--muted);
}
.input input {
  border: none;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: none;
}
.input input::placeholder {
  color: #aab3c0;
}
.forgot {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 20px;
}
.forgot a {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn {
  width: 100%;
  height: 48px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  box-shadow: 0 6px 16px rgba(46, 111, 208, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  background: var(--brand-dark);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: #b3bcc9;
  font-size: 11.5px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.foot a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.error {
  background: var(--bad-bg);
  color: var(--bad);
  border: 1px solid #f5c0c0;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 12.5px;
  margin-bottom: 16px;
  display: none;
}
.spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
