:root {
  --shell-ink: #11213b;
  --shell-ink-soft: #5d6b82;
  --shell-cream: #f4efe7;
  --shell-line: rgba(17, 33, 59, 0.1);
  --shell-card: rgba(255, 255, 255, 0.92);
  --shell-primary: #0b7a75;
  --shell-primary-dark: #0a5d59;
  --shell-accent: #f28f3b;
  --shell-shadow: 0 28px 80px rgba(17, 33, 59, 0.18);
}

* {
  box-sizing: border-box;
}

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

body.auth-shell {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--shell-ink);
  background:
    radial-gradient(circle at top left, rgba(242, 143, 59, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(11, 122, 117, 0.24), transparent 32%),
    linear-gradient(135deg, #fffaf4 0%, #eef6f6 55%, #eff2fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-canvas {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 32px 16px;
}

.auth-canvas::before,
.auth-canvas::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.auth-canvas::before {
  top: -120px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(242, 143, 59, 0.18);
}

.auth-canvas::after {
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  background: rgba(11, 122, 117, 0.16);
}

.auth-frame {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

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

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shell-ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-shell-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shell-shadow);
  backdrop-filter: blur(18px);
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 56px;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(8, 23, 48, 0.92), rgba(11, 122, 117, 0.9)),
    url("../img/menu2.png");
  background-size: cover;
  background-position: center;
}

.auth-story::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(242, 143, 59, 0.18), transparent 40%),
    linear-gradient(0deg, rgba(8, 23, 48, 0.18), rgba(8, 23, 48, 0.18));
}

.auth-story > * {
  position: relative;
  z-index: 1;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-story h1 {
  margin: 0 0 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-story p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.75;
}

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

.auth-point {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-point strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.auth-point span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
}

.auth-note {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-note h2 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.auth-note p {
  font-size: 0.94rem;
  line-height: 1.7;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  padding: 42px;
  background: var(--shell-card);
}

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

.auth-kicker {
  margin: 0 0 10px;
  color: var(--shell-primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-form-wrap h2 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-form-wrap > p {
  margin: 0 0 26px;
  color: var(--shell-ink-soft);
  font-size: 0.99rem;
  line-height: 1.8;
}

.auth-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.auth-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 122, 117, 0.08);
  color: var(--shell-primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--shell-ink);
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-control {
  height: 54px;
  border: 1px solid var(--shell-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--shell-ink);
  font-size: 0.98rem;
  box-shadow: none;
  padding: 0 16px;
}

.auth-form textarea.form-control {
  height: auto;
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

.auth-form .form-control:focus {
  border-color: rgba(11, 122, 117, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(11, 122, 117, 0.12);
}

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

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--shell-primary), #118c85);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 32px rgba(11, 122, 117, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(11, 122, 117, 0.28);
  color: #fff;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--shell-ink-soft);
  font-size: 0.93rem;
}

.auth-links a {
  font-weight: 800;
  color: var(--shell-primary-dark);
}

.auth-inline-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(242, 143, 59, 0.18);
  background: rgba(242, 143, 59, 0.08);
  color: var(--shell-ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.auth-inline-note strong {
  color: var(--shell-ink);
}

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

  .auth-story {
    padding: 40px 28px 30px;
  }

  .auth-point {
    min-height: 100%;
  }

  .auth-form-panel {
    padding: 34px 24px 30px;
  }
}

@media (max-width: 767px) {
  .auth-canvas {
    padding: 18px 12px;
  }

  .auth-topbar {
    margin-bottom: 14px;
  }

  .auth-story {
    padding: 28px 22px;
    gap: 24px;
  }

  .auth-story h1 {
    font-size: 2.25rem;
  }

  .auth-points,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    padding: 28px 18px 22px;
  }

  .auth-form-wrap h2 {
    font-size: 2rem;
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
