@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --auth-bg: #07142f;
  --auth-bg-2: #0f2356;
  --auth-surface: rgba(255, 255, 255, 0.94);
  --auth-surface-strong: #ffffff;
  --auth-border: rgba(133, 154, 197, 0.26);
  --auth-ink: #13213f;
  --auth-muted: #5f6f92;
  --auth-accent: #0f6df1;
  --auth-accent-2: #08b8c8;
  --auth-danger: #a11e41;
  --auth-success: #0d8c68;
  --auth-shadow: 0 32px 60px rgba(5, 16, 42, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(8, 184, 200, 0.18), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(15, 109, 241, 0.2), transparent 28%),
    linear-gradient(140deg, var(--auth-bg) 0%, #102042 38%, var(--auth-bg-2) 100%);
}

.auth-page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  align-items: center;
}

.auth-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--auth-shadow);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.auth-shell.auth-shell-compact {
  width: min(980px, 100%);
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 0.88fr);
}

.auth-spotlight {
  position: relative;
  padding: 34px 32px 36px;
  color: #f4f8ff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.auth-spotlight::after {
  content: "";
  position: absolute;
  inset: auto 28px 28px auto;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(8, 184, 200, 0.24), rgba(255, 255, 255, 0.03));
  transform: rotate(18deg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand img {
  width: 116px;
  height: auto;
}

.auth-kicker {
  margin: 56px 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

.auth-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.96;
}

.auth-copy {
  max-width: 30rem;
  margin: 18px 0 28px;
  color: rgba(239, 245, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.auth-stats,
.auth-points {
  position: relative;
  z-index: 1;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-stat strong {
  display: block;
  font-size: 24px;
}

.auth-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(239, 245, 255, 0.74);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.auth-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-point-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.auth-point strong {
  display: block;
  font-size: 14px;
}

.auth-point span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(239, 245, 255, 0.76);
}

.auth-form-pane {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 248, 255, 0.98));
  padding: 34px 32px;
}

.auth-form-card {
  background: var(--auth-surface-strong);
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.auth-form-card h1 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
}

.auth-form-card p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  margin-top: 24px;
}

.auth-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(161, 30, 65, 0.18);
  background: #fff3f6;
  color: var(--auth-danger);
  font-size: 14px;
  font-weight: 600;
}

.auth-section {
  margin-top: 18px;
}

.auth-section:first-of-type {
  margin-top: 0;
}

.auth-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-section-head h2 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #35518a;
}

.auth-section-head span {
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-grid.auth-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field.field-full {
  grid-column: 1 / -1;
}

.field label,
.checkbox-card label {
  font-size: 13px;
  font-weight: 700;
  color: #253b68;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d8e1f4;
  border-radius: 16px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--auth-ink);
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(15, 109, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 109, 241, 0.12);
  transform: translateY(-1px);
}

.field small {
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.5;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-row.choice-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: block;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: block;
  min-height: 100%;
  border-radius: 16px;
  border: 1px solid #d8e1f4;
  background: #fbfdff;
  padding: 14px 14px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.choice-card strong {
  display: block;
  font-size: 14px;
  color: #1d2f5b;
}

.choice-card em {
  display: block;
  margin-top: 6px;
  color: var(--auth-muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.choice-card input:checked + span {
  border-color: rgba(15, 109, 241, 0.44);
  box-shadow: 0 16px 28px rgba(15, 109, 241, 0.12);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
}

.checkbox-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #d8e1f4;
  background: linear-gradient(180deg, #fbfdff, #f5f8ff);
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.checkbox-row span {
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
}

.checkbox-row a,
.auth-form-meta a {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 700;
}

.checkbox-row a:hover,
.auth-form-meta a:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(130deg, var(--auth-accent), var(--auth-accent-2));
  box-shadow: 0 22px 32px rgba(15, 109, 241, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 36px rgba(15, 109, 241, 0.28);
}

.auth-form-meta {
  margin-top: 14px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-form-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(13, 140, 104, 0.08);
  color: var(--auth-success);
  font-size: 12px;
  font-weight: 700;
}

body.login-page-body {
  background: #f5f5f5;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body.login-page-body .auth-page-login {
  min-height: 100vh;
  padding: 0;
  display: block;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-pane {
  background: #f5f5f5;
}

.login-pane__inner {
  min-height: 100vh;
  padding: 32px 40px 36px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.login-brand {
  display: inline-flex;
  align-items: center;
}

.login-brand img {
  width: 104px;
  height: auto;
}

.login-pane__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 28px;
}

.login-form-wrap {
  width: min(100%, 452px);
  margin: 0 auto;
}

.login-copy {
  text-align: center;
}

.login-copy h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.85rem, 1.95vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #0b0f1a;
}

.login-copy p {
  margin: 14px 0 0;
  color: #101828;
  font-size: clamp(0.94rem, 0.88vw, 1rem);
  line-height: 1.45;
}

.login-form {
  width: 100%;
  margin-top: 44px;
}

.login-form .auth-section {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.login-form .field {
  gap: 8px;
}

.login-form .field label {
  font-size: 13px;
  font-weight: 500;
  color: #25324b;
}

.login-form .field input {
  border: 1px solid #d6d9e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: #4b5565;
  background: #ffffff;
  box-shadow: none;
}

.login-form .field input::placeholder {
  color: #6e7b91;
}

.login-form .field input:focus {
  outline: none;
  border-color: rgba(15, 109, 241, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 109, 241, 0.12);
  transform: none;
}

.login-submit {
  margin-top: 34px;
  border-radius: 12px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, #2d7af5 0%, #0f6df1 100%);
  box-shadow: none;
}

.login-submit:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(1.02);
}

.login-links {
  margin-top: 20px;
  display: grid;
  gap: 18px;
  text-align: center;
}

.login-forgot,
.login-register a {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 700;
}

.login-forgot {
  font-size: 14px;
}

.login-forgot:hover,
.login-register a:hover {
  text-decoration: underline;
}

.login-register {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.login-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #2d7af5 0%, #0f6df1 100%);
}

.login-showcase__inner {
  width: min(100%, 470px);
  margin: 0 auto;
  text-align: center;
}

.login-showcase h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.8rem, 1.95vw, 2.34rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.14;
  color: #ffffff;
}

.login-showcase__copy {
  max-width: 452px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.9px;
  font-weight: 400;
  line-height: 1.58;
  text-wrap: balance;
}

.login-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(16px);
}

.login-rating__avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.login-rating__avatar {
  width: 50px;
  height: 50px;
  margin-left: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  object-fit: cover;
  background: #dbe6ff;
}

.login-rating__avatar:first-child {
  margin-left: 0;
}

.login-rating__text {
  display: grid;
  gap: 6px;
  width: 184px;
  text-align: left;
}

.login-rating__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
}

.login-stars {
  display: flex;
  align-items: center;
  gap: 7px;
}

.login-stars span {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.login-rating__score {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.login-rating__line {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

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

  .auth-spotlight {
    padding-bottom: 28px;
  }

  .auth-kicker {
    margin-top: 32px;
  }
}

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

  .login-showcase {
    display: none;
  }

  .login-pane__content {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 72px;
    padding-bottom: 56px;
  }
}

@media (max-width: 760px) {
  .auth-page {
    padding: 14px;
  }

  .auth-spotlight,
  .auth-form-pane,
  .auth-form-card {
    padding: 22px 20px;
  }

  .auth-grid,
  .auth-grid.auth-grid-3,
  .choice-row,
  .choice-row.choice-row-2,
  .auth-stats {
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: 36px;
  }

  .login-pane__inner {
    padding: 32px 20px 36px;
  }

  .login-brand img {
    width: 102px;
  }

  .login-pane__content {
    padding-top: 70px;
  }

  .login-form-wrap {
    width: min(100%, 452px);
  }

  .login-copy h1 {
    font-size: 1.95rem;
  }

  .login-copy p {
    font-size: 14px;
  }

  .login-copy {
    text-align: center;
  }

  .login-form {
    margin-top: 44px;
  }

  .login-form .field input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .login-submit {
    margin-top: 34px;
  }

  .login-links {
    gap: 18px;
  }

  .login-forgot,
  .login-register {
    font-size: 14px;
  }

  .login-rating__text {
    width: 184px;
  }
}
