:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #11141b;
  color: #f1ece4;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(183, 122, 87, 0.19), transparent 34rem),
    radial-gradient(circle at 86% 90%, rgba(88, 105, 151, 0.16), transparent 28rem),
    #11141b;
}

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

.login-card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(241, 236, 228, 0.14);
  border-radius: 24px;
  background: rgba(28, 32, 42, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.brand {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #c8845f;
  color: #17130f;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 26px 0 8px;
  color: #c8a28d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 43px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.intro,
.boundary {
  color: #bcb9b3;
  font-size: 16px;
  line-height: 1.7;
}

.intro {
  margin: 18px 0 30px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #e8dfd5;
  font-size: 15px;
  font-weight: 650;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
button {
  min-height: 50px;
  border-radius: 13px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #555a66;
  padding: 0 15px;
  background: #171a22;
  color: #f5f1eb;
  outline: none;
}

input:focus {
  border-color: #d3906a;
  box-shadow: 0 0 0 3px rgba(211, 144, 106, 0.2);
}

button {
  border: 0;
  padding: 0 23px;
  background: #d18b65;
  color: #18130f;
  font-weight: 780;
  cursor: pointer;
}

button:hover {
  background: #df9a73;
}

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

.error {
  min-height: 24px;
  margin: 10px 0 0;
  color: #f2a6a0;
  font-size: 15px;
}

.boundary {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(241, 236, 228, 0.11);
  font-size: 14px;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 16px 12px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
