:root {
  --ink: #0c2a3e;
  --muted: #5f7687;
  --panel: #ffffff;
  --line: #d7e6f3;
  --tone-1: #0a3b5f;
  --tone-2: #0d7c88;
  --tone-3: #21b6a8;
  --accent: #ffb703;
  --ok: #218c5a;
  --bad: #bb3d3d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, #c7ecff 0%, transparent 35%),
    radial-gradient(circle at 88% 80%, #ffe9cb 0%, transparent 30%),
    linear-gradient(135deg, #e9f4fd, #f8fbff);
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, transparent 95%, #8fb8d41f 95%),
    linear-gradient(to bottom, transparent 95%, #8fb8d41f 95%);
  background-size: 36px 36px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: #0d7c8833;
  right: -70px;
  top: 70px;
}

.orb-2 {
  width: 220px;
  height: 220px;
  background: #ffb70333;
  left: -50px;
  bottom: 30px;
}

.top-bar {
  width: min(1140px, 92%);
  margin: 22px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0a3555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  box-shadow: 0 14px 28px rgba(9, 34, 53, 0.23);
  position: relative;
  z-index: 2;
}

.top-logo,
.top-back {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-logo span {
  color: #ffdc7b;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-back {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

.top-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.top-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.auth-shell {
  width: min(1140px, 92%);
  margin: 18px auto 28px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 16px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.brand-panel,
.auth-card {
  border-radius: 22px;
  border: 1px solid #dbe9f6;
  box-shadow: 0 22px 38px rgba(12, 44, 66, 0.13);
}

.brand-panel {
  padding: 34px;
  background: linear-gradient(150deg, var(--tone-1), var(--tone-2) 62%, var(--tone-3));
  color: #fff;
}

.eyebrow {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #ffffff66;
  font-size: 0.78rem;
  margin: 0;
}

.brand-panel h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.brand-text {
  margin: 0 0 24px;
  color: #e7f6ff;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff1c;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  padding: 11px 12px;
}

.feature-item i {
  color: #ffde8b;
}

.auth-card {
  background: #ffffffeb;
  backdrop-filter: blur(8px);
  padding: 26px;
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--tone-2), var(--tone-3));
  box-shadow: 0 9px 18px rgba(16, 85, 109, 0.3);
}

.auth-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.auth-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f9fd;
  border: 1px solid #d4e5f3;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  border: none;
  border-radius: 9px;
  padding: 10px;
  background: transparent;
  color: #38526a;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--tone-2), var(--tone-3));
  color: #fff;
}

.alert-msg {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.alert-success {
  background: #e7f7ee;
  border: 1px solid #bee8ce;
  color: #166942;
}

.alert-error {
  background: #feefef;
  border: 1px solid #f6c9c9;
  color: #913434;
}

.auth-tip {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #46647c;
}

.quick-btns {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.btn-quick {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #c9dde9;
  border-radius: 8px;
  background: #f0f7fc;
  color: #2a4a62;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-quick:hover {
  background: #daedf9;
}

.auth-form {
  margin-top: 16px;
}

.auth-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #35526a;
}

.field-icon,
select {
  width: 100%;
  border: 1px solid #cdddeb;
  border-radius: 11px;
  background: #fff;
}

.field-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}

.field-icon i {
  color: #467191;
  font-size: 0.88rem;
}

input,
select,
button {
  font-family: inherit;
  font-size: 0.92rem;
  touch-action: manipulation;
}

.field-icon input,
select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 0;
}

.field-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.stretch {
  flex: 1;
}

.toggle-pass {
  width: 42px;
  border: 1px solid #cdddeb;
  border-radius: 11px;
  background: #f7fbff;
  color: #496881;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 14px;
}

.check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.check-wrap input {
  margin: 0;
}

.mini-link,
.check-wrap a,
.link-btn {
  color: #0f5d8b;
  text-decoration: none;
  font-weight: 700;
}

.link-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.btn-submit,
.btn-muted,
.btn-social {
  width: 100%;
  border: none;
  border-radius: 11px;
  padding: 11px 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--tone-2), var(--tone-3));
  box-shadow: 0 12px 22px rgba(13, 124, 136, 0.32);
}

.btn-submit:hover {
  filter: brightness(1.03);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: filter 0.15s;
}

.social-link:hover {
  filter: brightness(1.07);
}

.social-tg {
  background: #229ED9;
  color: #fff;
}

.social-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #91a4b4;
  font-size: 0.82rem;
  margin: 13px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d8e6f2;
}

.btn-social {
  background: #fff;
  color: #38526a;
  border: 1px solid #cfe0ef;
}

.btn-social i {
  color: #f1a800;
}

.switch-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid #c9dbea;
  color: #7890a1;
  background: #fff;
}

.step-dot.active {
  color: #fff;
  border-color: #0d7c88;
  background: #0d7c88;
}

.step-dot.done {
  color: #fff;
  border-color: #218c5a;
  background: #218c5a;
}

.step-line {
  height: 2px;
  flex: 1;
  background: #d4e3f0;
  margin: 0 5px;
}

.step-line.done {
  background: #218c5a;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.strength-bar {
  height: 4px;
  border-radius: 50px;
  background: #dce9f4;
  margin: -6px 0 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: 0.3s ease;
}

.strength-label {
  font-size: 0.78rem;
  color: #7f95a7;
  margin-bottom: 11px;
}

.btn-row {
  display: flex;
  gap: 8px;
}

.btn-muted {
  background: #edf3f8;
  border: 1px solid #caddea;
  color: #335673;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .top-bar {
    padding: 11px 12px;
  }

  .top-back {
    font-size: 0.78rem;
  }

  .auth-card {
    padding: 18px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .auth-tab {
    font-size: 0.82rem;
    padding: 9px 6px;
  }

  .field-row,
  .btn-row {
    flex-direction: column;
  }

  .toggle-pass {
    width: 100%;
    height: 41px;
  }

  .btn-submit {
    min-height: 48px;
    font-size: 1rem;
  }
}
