.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.82fr);
  gap: clamp(42px, 5.4vw, 92px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 48px) clamp(34px, 6vw, 86px);
  overflow: hidden;
  isolation: isolate;
}

.hero-panel,
.auth-panel {
  position: relative;
  z-index: 1;
}

.hero-panel {
  display: grid;
  align-content: center;
  min-height: min(620px, calc(100vh - 80px));
}

.hero-badge {
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  font-size: 0.9rem;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--mint), var(--aqua) 48%, var(--blue));
  box-shadow: 0 8px 22px rgba(53, 110, 232, 0.16);
}

.badge-icon svg {
  width: 16px;
  height: 16px;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-copy {
  max-width: 680px;
  margin-top: clamp(34px, 5.2vw, 58px);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.15rem, 6.4vw, 6.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  font-weight: 400;
  line-height: 1.75;
}

.glass-visual {
  position: relative;
  width: min(620px, 100%);
  min-height: clamp(230px, 30vh, 280px);
  margin-top: clamp(22px, 4vh, 42px);
  perspective: 1100px;
}

.glass-visual::before {
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: -18px;
  height: 82px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(106, 215, 205, 0.22), rgba(238, 211, 179, 0.12) 45%, transparent 72%);
  filter: blur(10px);
}

.dashboard-preview,
.floating-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  box-shadow: var(--shadow-float), var(--highlight);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.dashboard-preview {
  position: absolute;
  right: 4%;
  bottom: 10px;
  width: min(500px, 86%);
  min-height: 236px;
  border-radius: 30px;
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(4deg);
  animation: floatIn 8s ease-in-out infinite;
}

.preview-header {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(129, 151, 171, 0.12);
}

.preview-header span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(103, 127, 150, 0.22);
}

.preview-body {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 11px;
}

.preview-sidebar span,
.preview-line {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(86, 115, 140, 0.13);
}

.preview-sidebar span:nth-child(1) {
  width: 50px;
  background: rgba(91, 215, 190, 0.34);
}

.preview-sidebar span:nth-child(2) {
  width: 62px;
}

.preview-sidebar span:nth-child(3) {
  width: 42px;
}

.preview-content {
  display: grid;
  gap: 14px;
}

.preview-line {
  width: 58%;
}

.preview-line.wide {
  width: 78%;
  height: 17px;
  background: rgba(53, 110, 232, 0.1);
}

.preview-chart {
  min-height: 118px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background:
    linear-gradient(rgba(86, 115, 140, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 115, 140, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.48);
  background-size: 28px 28px;
}

.line-chart svg {
  width: 100%;
  height: 118px;
}

.chart-fill {
  fill: rgba(111, 219, 239, 0.12);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: rgba(53, 110, 232, 0.58);
  stroke-width: 5;
}

.line-chart circle {
  fill: white;
  stroke: rgba(53, 110, 232, 0.62);
  stroke-width: 3;
}

.floating-card {
  position: absolute;
  border-radius: var(--radius-lg);
}

.metrics-card {
  left: 0;
  top: 4px;
  z-index: 3;
  width: min(218px, 47%);
  padding: 16px;
  animation: softBob 7s ease-in-out infinite reverse;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(36, 185, 145, 0.1);
}

.metrics-card strong {
  display: block;
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: 1.88rem;
  line-height: 1;
}

.mini-bars {
  display: flex;
  gap: 7px;
}

.mini-bars span {
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: rgba(69, 134, 231, 0.16);
}

.mini-bars span:nth-child(2),
.mini-bars span:nth-child(4) {
  background: rgba(112, 224, 189, 0.46);
}

.activity-card {
  left: 44%;
  bottom: 2px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(246px, 44%);
  padding: 13px 14px;
  animation: softBob 8.5s ease-in-out infinite;
}

.activity-icon,
.shield-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  color: #2f72dc;
  background: rgba(235, 249, 255, 0.72);
}

.activity-card strong,
.activity-card span {
  display: block;
}

.activity-card strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.1;
}

.activity-card div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.security-card {
  right: 2%;
  top: 2px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  color: #33536c;
  font-size: 0.8rem;
  font-weight: 800;
}

.shield-icon {
  width: 32px;
  height: 32px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--mint), var(--blue));
}

.glass-orb {
  position: absolute;
  z-index: 2;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 28%, rgba(113, 219, 239, 0.18) 60%, rgba(238, 210, 178, 0.1));
  box-shadow: inset 0 1px 16px rgba(255, 255, 255, 0.5), 0 18px 40px rgba(65, 92, 126, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.orb-one {
  width: 76px;
  height: 76px;
  left: 14%;
  bottom: 18px;
}

.orb-two {
  width: 48px;
  height: 48px;
  right: 4%;
  bottom: 76px;
}

.orb-three {
  width: 34px;
  height: 34px;
  left: 52%;
  top: 18px;
  opacity: 0.72;
}

.google-logo svg {
  width: 21px;
  height: 21px;
  fill: initial;
  stroke: none;
}

.auth-panel {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(100%, 438px);
  padding: clamp(24px, 2.5vw, 30px);
  border-radius: 32px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 96px rgba(67, 79, 105, 0.18), var(--highlight);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 20px;
  border: 1px solid rgba(122, 146, 170, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.tab-button {
  min-height: 43px;
  border-radius: 999px;
  color: #657282;
  background: transparent;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 190ms ease, background 190ms ease, box-shadow 190ms ease;
}

.tab-button.active {
  color: #2457c5;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(68, 88, 117, 0.11);
}

.auth-heading {
  margin-bottom: 16px;
}

.auth-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.95rem, 2.4vw, 2.28rem);
  font-weight: 700;
  line-height: 1.18;
}

.auth-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.auth-form {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.auth-form.active {
  display: grid;
  gap: 8px;
  animation: formReveal 260ms ease forwards;
}

.field {
  display: grid;
  gap: 7px;
  color: #415169;
  font-size: 0.88rem;
  font-weight: 700;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(119, 142, 166, 0.17);
  border-radius: 18px;
  color: #748295;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(76, 91, 115, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field:focus-within .input-shell {
  border-color: rgba(73, 202, 195, 0.72);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(112, 224, 189, 0.14), 0 14px 34px rgba(76, 91, 115, 0.075);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.98rem;
}

.input-shell input::placeholder {
  color: #a3adba;
}

.reveal-password {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -6px;
  border-radius: 12px;
  color: #748295;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.reveal-password:hover {
  color: var(--blue);
  background: rgba(52, 110, 234, 0.08);
}

.forgot-link {
  justify-self: end;
  margin-top: -1px;
  color: #2d6de5;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-error {
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.field.error .input-shell {
  border-color: rgba(217, 104, 114, 0.42);
  box-shadow: 0 0 0 4px rgba(217, 104, 114, 0.09);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.check-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--success);
}

.auth-form .primary-button {
  min-height: 52px;
  width: 100%;
  margin-top: 4px;
}

.divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  color: #8994a2;
  font-size: 0.82rem;
  font-weight: 600;
}

.divider::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: rgba(118, 140, 161, 0.18);
}

.divider span {
  position: relative;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.8);
}

.social-button {
  min-height: 50px;
  width: 100%;
  padding: 0 18px;
}

.google-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.switch-copy {
  margin: 0;
  color: #7b8796;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.switch-copy button {
  color: #2d6de5;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.switch-copy button:hover {
  color: #2457c5;
}

.form-message {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-message:empty {
  display: none;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    padding: 34px 24px 42px;
  }

  .hero-panel {
    min-height: auto;
    justify-items: center;
    text-align: center;
  }

  .hero-badge {
    margin-inline: auto;
  }

  .mobile-brand {
    display: inline-flex;
    margin-bottom: 20px;
  }

  .hero-copy {
    margin-top: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 8vw, 4.5rem);
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .glass-visual {
    min-height: 246px;
    margin-top: 22px;
  }

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

@media (max-width: 720px) {
  .auth-shell {
    padding: 24px 16px 30px;
  }

  .hero-badge {
    min-height: 40px;
    font-size: 0.8rem;
  }

  .hero-copy {
    margin-top: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
    line-height: 1.12;
  }

  .hero-copy p {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .glass-visual {
    display: none;
  }

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

  .tabs {
    margin-bottom: 22px;
  }

  .auth-heading {
    margin-bottom: 18px;
  }

  .auth-heading h2 {
    font-size: 1.75rem;
  }

  .auth-heading p {
    font-size: 0.91rem;
  }

  .input-shell {
    min-height: 54px;
    border-radius: 18px;
  }
}

@media (max-width: 390px) {
  .auth-shell {
    padding-inline: 12px;
  }

  .auth-card {
    padding: 18px;
    border-radius: 24px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .tab-button,
  .social-button,
  .primary-button {
    font-size: 0.9rem;
  }

  .input-shell {
    padding-inline: 12px;
  }
}
