:root {
  color-scheme: light;
  --ink: #25283b;
  --muted: #73778d;
  --line: #e8e7ee;
  --paper: #fbfbfd;
  --coral: #ff735c;
  --navy: #262f5e;
  --violet: #8c82ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px 20px;
  background: radial-gradient(ellipse at 12% 8%, #f0efff 0, transparent 36%),
              radial-gradient(ellipse at 92% 95%, #fff0e9 0, transparent 32%),
              var(--paper);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 38px 40px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 65px rgba(38, 47, 94, .09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.brand-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2px;
}

.eyebrow {
  margin: 38px 0 8px;
  color: #7168d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 8vw, 42px);
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.intro {
  margin: 12px 0 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.error-slot:empty { display: none; }

.error-slot:not(:empty) {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #ffd3cb;
  border-radius: 9px;
  background: #fff3f0;
  color: #9f352b;
  font-size: 13px;
  line-height: 1.5;
}

.field { margin: 0 0 18px; }

label {
  display: block;
  margin-bottom: 7px;
  color: #41445a;
  font-size: 13px;
  font-weight: 700;
}

input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #dcdbe5;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus-visible {
  border-color: #7168d9;
  outline: 3px solid rgba(140, 130, 239, .22);
  outline-offset: 1px;
}

.submit {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--coral);
  box-shadow: 0 6px 14px rgba(255, 115, 92, .18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.submit:hover { background: #f0644e; }
.submit:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.submit span { font-size: 20px; line-height: 1; }

.footer-note {
  margin: 25px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #9295a5;
  font-size: 11px;
  text-align: center;
}

.decor { position: absolute; border-radius: 50%; pointer-events: none; }
.decor-one { width: 230px; height: 230px; top: -110px; right: 8%; background: rgba(140, 130, 239, .12); }
.decor-two { width: 170px; height: 170px; bottom: -90px; left: 7%; background: rgba(255, 115, 92, .10); }

@media (max-width: 480px) {
  .login-page { padding: 16px; }
  .login-card { padding: 29px 23px 23px; border-radius: 16px; }
  .eyebrow { margin-top: 31px; }
}

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