@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root {
  color-scheme: dark;
  --bg: #0c0d0d;
  --surface: #151616;
  --field: #222323;
  --text: #f4f2ed;
  --muted: #9c9d99;
  --quiet: #6f716e;
  --line: #343636;
  --line-strong: #bfc1bd;
  --accent: #f4f2ed;
  --button: #f2f1ed;
  --button-text: #111313;
  --danger: #ffb7b7;
  --success: #b9e8c8;
  font-family: 'DM Sans', system-ui, sans-serif;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --field: #f5f5f3;
  --text: #171918;
  --muted: #666965;
  --quiet: #7a7d79;
  --line: #dedfdb;
  --line-strong: #767976;
  --accent: #171918;
  --button: #171918;
  --button-text: #f8f7f2;
  --danger: #8f2929;
  --success: #28643d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  transition: background .2s, color .2s;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button, input {
  font: inherit;
}

.site-brand {
  position: fixed;
  z-index: 5;
  top: 48px;
  left: clamp(32px, 4.5vw, 72px);
}

.site-brand a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.site-brand i {
  font-size: 27px;
}

.site-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
}

.site-brand span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.theme-toggle {
  position: fixed;
  z-index: 5;
  top: 38px;
  right: clamp(32px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 25px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.theme-toggle i {
  font-size: 18px;
}

.theme-toggle i:first-child {
  color: var(--text);
}

.switch {
  width: 32px;
  height: 18px;
  padding: 2px;
  border-radius: 20px;
  background: #484b48;
}

.switch span {
  display: block;
  width: 14px;
  height: 14px;
  margin-left: 14px;
  border-radius: 50%;
  background: #f6f5ef;
  transition: margin .2s;
}

:root[data-theme='light'] .switch span {
  margin-left: 0;
}

.auth-layout {
  width: min(1320px, calc(100% - 64px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 560px);
  gap: clamp(70px, 8vw, 145px);
  align-items: center;
  padding: 130px 0 65px;
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.auth-visual {
  width: min(100%, 720px);
  height: clamp(200px, 28vh, 300px);
  margin: 0 0 52px;
  overflow: hidden;
  border-radius: 18px;
}

.auth-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 58%;
  filter: grayscale(1);
  mix-blend-mode: screen;
  opacity: .82;
}

:root[data-theme='light'] .auth-visual {
  background: #ffffff;
}

:root[data-theme='light'] .auth-visual img {
  filter: grayscale(1) invert(1);
  mix-blend-mode: multiply;
  opacity: .9;
}

.auth-intro-copy {
  padding-top: 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 39px;
  margin-bottom: 27px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.auth-intro h1 {
  max-width: 610px;
  margin: 0;
  font: 700 clamp(42px, 3.25vw, 56px)/1.02 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.auth-intro p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.auth-card {
  align-self: center;
  width: 100%;
  margin: 0;
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 28px 55px rgba(0, 0, 0, .2);
}

.card-header {
  margin-bottom: 34px;
}

.card-header h2 {
  margin: 0 0 10px;
  font: 600 25px/1.15 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.035em;
}

.card-header p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 23px;
}

label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 53px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: transparent;
  transition: border-color .15s, box-shadow .15s;
}

.field > i {
  position: absolute;
  left: 19px;
  color: var(--quiet);
  font-size: 20px;
}

.field input {
  width: 100%;
  height: 100%;
  padding: 0 52px;
  border: 0;
  border-radius: inherit;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.field input::placeholder {
  color: var(--quiet);
  opacity: 1;
}

.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus, .field input:-webkit-autofill:active {
  border: 0;
  caret-color: var(--text);
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 9999s ease-out 0s;
}

.field input:autofill {
  color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface) inset;
}

.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.reveal {
  position: absolute;
  right: 11px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  color: var(--quiet);
  background: transparent;
  cursor: pointer;
}

.reveal:hover {
  color: var(--text);
}

.primary {
  display: grid;
  place-items: center;
  min-height: 50px;
  margin-top: 5px;
  padding: 0 24px;
  border: 1px solid var(--button);
  border-radius: 13px;
  color: var(--button-text);
  background: var(--button);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}

.primary:hover {
  opacity: .88;
  text-decoration: none;
}

.primary:active {
  transform: translateY(1px);
}

.button-link {
  width: 100%;
}

.card-links {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
}

.card-links a {
  color: var(--muted);
  text-decoration: none;
}

.card-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card-links.one {
  justify-content: flex-start;
}

.alert {
  margin: -20px 0 26px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.5;
}

.alert.error {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}

.alert.success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 45%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, transparent);
}

.verify-heading {
  text-align: left;
}

.verify-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 0 25px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 25px;
}

.email-chip {
  margin: -14px 0 27px;
  padding: 13px 15px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  background: var(--surface);
  font-size: 14px;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 24px 40px;
}

.dashboard > div {
  width: min(660px, 100%);
  padding: 56px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dashboard h1 {
  margin: 26px 0 12px;
  font: 700 48px/1.05 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.045em;
}

.dashboard p {
  color: var(--muted);
}

.dashboard form {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .site-brand {
    top: 28px;
    left: 28px;
  }
  .theme-toggle {
    top: 20px;
    right: 24px;
  }
  .auth-layout {
    width: min(620px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 130px 0 55px;
  }
  .auth-intro {
    min-height: auto;
    padding: 0;
  }
  .auth-visual {
    width: 100%;
    height: 300px;
    margin-bottom: 48px;
  }
  .auth-intro-copy {
    padding-top: 0;
  }
  .auth-intro h1 {
    max-width: 720px;
    font-size: clamp(48px, 8vw, 70px);
  }
  .auth-card {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .site-brand {
    top: 25px;
    left: 20px;
  }
  .site-brand span {
    font-size: 12px;
    letter-spacing: .12em;
  }
  .site-brand i {
    font-size: 23px;
  }
  .theme-toggle {
    top: 70px;
    right: 20px;
    height: 40px;
  }
  .auth-layout {
    width: calc(100% - 24px);
    padding-top: 124px;
  }
  .auth-intro {
    padding: 40px 20px 38px;
  }
  .auth-visual {
    height: 210px;
    margin-bottom: 35px;
  }
  .auth-intro h1 {
    font-size: 43px;
  }
  .auth-intro p {
    margin-top: 20px;
    font-size: 15px;
  }
  .auth-card {
    width: 100%;
    margin: 0;
    padding: 30px 22px;
    border-radius: 20px;
  }
  .card-header {
    margin-bottom: 32px;
  }
  .card-header h2 {
    font-size: 24px;
  }
  .field, .primary {
    min-height: 58px;
  }
  .card-links {
    gap: 18px;
    font-size: 14px;
  }
}

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

/* Typography: headings are bold; all other interface copy is regular. */
body,
body button,
body input,
body select,
body textarea,
body a,
body p,
body span,
body small,
body strong,
body b,
body label {
  font-weight: 400 !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-weight: 700 !important;
}
