:root {
  --ink: #0b2436;
  --ink-soft: #365466;
  --teal: #18b7a4;
  --teal-dark: #0e887a;
  --cyan: #49d6c8;
  --gold: #f5c85c;
  --paper: #f6f9fb;
  --white: #ffffff;
  --line: #dbe6ec;
  --danger: #b42318;
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.auth-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(0, 1fr);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}

.brand {
  width: 164px;
  margin-bottom: 52px;
}

.auth-copy {
  max-width: 420px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
}

.auth-copy p,
.reset-heading p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.auth-form {
  display: none;
  max-width: 440px;
}

.auth-form.is-active {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.remember span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 183, 164, 0.14);
}

.password-control {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.password-control:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 183, 164, 0.14);
}

.password-control input {
  border: 0;
  box-shadow: none;
}

.password-toggle {
  min-width: 58px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--teal-dark);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.form-row.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.remember,
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.remember input,
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal-dark);
  flex: 0 0 auto;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.back-link {
  width: max-content;
}

.auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: progress;
  opacity: 0.76;
}

.auth-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.4;
}

.auth-status.error {
  color: var(--danger);
}

.auth-alt {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.auth-alt a {
  color: var(--teal-dark);
  font-weight: 900;
}

.auth-aside {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding: 56px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(4, 18, 28, 0.82), rgba(4, 18, 28, 0.38)),
    url("../assets/atenico-hero.png");
  background-position: center;
  background-size: cover;
}

.auth-aside > div {
  max-width: 560px;
}

.auth-aside .eyebrow {
  color: var(--cyan);
}

.auth-aside h2 {
  margin: 0;
  color: var(--white);
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-panel {
    min-height: 100svh;
    padding: 36px 22px;
  }

  .brand {
    margin-bottom: 38px;
  }

  h1 {
    font-size: 36px;
  }
}
