:root {
  --auth-ink: #152033;
  --auth-muted: #637083;
  --auth-line: #dce3ec;
  --auth-accent: #c74629;
  --auth-accent-dark: #a83219;
  --auth-blue: #1557b0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--auth-ink);
  background: #edf1f5;
  font-family: "Manrope", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.auth-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
}

.auth-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 88px);
  color: #fff;
  background: #121a26;
}

.auth-intro::before {
  position: absolute;
  top: -20%;
  right: -35%;
  z-index: -1;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 74px rgba(255, 255, 255, 0.025), 0 0 0 150px rgba(255, 255, 255, 0.018);
  content: "";
}

.auth-intro::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 45%;
  height: 7px;
  background: var(--auth-accent);
  content: "";
}

.auth-brand {
  position: absolute;
  top: clamp(28px, 4vw, 52px);
  left: clamp(32px, 6vw, 88px);
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.auth-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.auth-brand span {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  font-family: "Outfit", "Manrope", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.13em;
}

.auth-brand small {
  color: #96a5b9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-intro-copy {
  max-width: 630px;
  margin-bottom: clamp(36px, 6vh, 64px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--auth-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 620px;
  margin: 0;
  font-family: "Outfit", "Manrope", Arial, sans-serif;
  font-size: clamp(38px, 4.3vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.auth-intro-copy > p:last-child {
  max-width: 560px;
  margin: 24px 0 0;
  color: #aeb9c8;
  font-size: 16px;
  line-height: 1.75;
}

.auth-feature {
  max-width: 540px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-feature > span {
  color: var(--auth-accent);
  font-family: "Outfit", "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.auth-feature p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.auth-feature strong {
  font-size: 14px;
}

.auth-feature small {
  color: #8f9caf;
  font-size: 12px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 88px);
  background: #f7f9fb;
}

.auth-card {
  width: min(100%, 470px);
}

.auth-card h2 {
  margin: 0;
  color: var(--auth-ink);
  font-family: "Outfit", "Manrope", Arial, sans-serif;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.auth-lead {
  margin: 15px 0 28px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-alert {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #f0b6a8;
  border-left: 4px solid var(--auth-accent);
  border-radius: 7px;
  color: #8c2d19;
  background: #fff2ee;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-card form {
  display: grid;
  gap: 17px;
}

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

.auth-field > span {
  color: #334156;
  font-size: 13px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--auth-line);
  border-radius: 7px;
  color: var(--auth-ink);
  background: #fff;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-field input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(21, 87, 176, 0.1);
}

.auth-field small {
  color: #7d8999;
  font-size: 11px;
  line-height: 1.45;
}

.auth-submit {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--auth-accent);
  box-shadow: 0 12px 24px rgba(199, 70, 41, 0.2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: background 140ms ease, transform 140ms ease;
}

.auth-submit:hover {
  background: var(--auth-accent-dark);
  transform: translateY(-1px);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(21, 87, 176, 0.28);
  outline-offset: 3px;
}

.auth-submit span {
  font-size: 20px;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 24px 0 18px;
  color: #8793a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--auth-line);
  content: "";
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: #f7f9fb;
}

.auth-google {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--auth-line);
  border-radius: 7px;
  color: #263348;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-google:hover {
  border-color: #b8c4d3;
  box-shadow: 0 8px 24px rgba(25, 37, 55, 0.08);
  transform: translateY(-1px);
}

.auth-google:focus-visible {
  outline: 3px solid rgba(21, 87, 176, 0.22);
  outline-offset: 3px;
}

.auth-google svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.auth-google-pending {
  border-style: dashed;
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}

.auth-switch a {
  color: var(--auth-blue);
  font-weight: 800;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-layout-compact {
  display: grid;
  grid-template-columns: 1fr;
}

.auth-card-compact {
  padding: 40px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(25, 37, 55, 0.11);
}

.auth-card-compact .auth-brand {
  position: static;
  margin-bottom: 42px;
}

.auth-brand-dark {
  color: var(--auth-ink);
}

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

  .auth-intro {
    min-height: 320px;
    padding-top: 120px;
  }

  .auth-intro h1 {
    max-width: 720px;
    font-size: clamp(34px, 8vw, 54px);
  }

  .auth-feature {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-intro {
    min-height: 260px;
    padding: 105px 26px 35px;
  }

  .auth-brand {
    top: 25px;
    left: 26px;
  }

  .auth-intro-copy {
    margin: 0;
  }

  .auth-intro h1 {
    font-size: 34px;
  }

  .auth-intro-copy > p:last-child {
    display: none;
  }

  .auth-panel {
    place-items: start center;
    padding: 38px 22px 52px;
  }

  .auth-card h2 {
    font-size: 30px;
  }

  .auth-card-compact {
    padding: 28px 22px;
  }
}
