:root {
  --text: #0d1424;
  --muted: #5d687a;
  --line: #dce3ee;
  --line-strong: #cbd5e1;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --green: #22c55e;
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 26px 80px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 10%, rgba(232, 239, 250, 0.8), transparent 28rem),
    radial-gradient(circle at 86% 5%, rgba(239, 246, 255, 0.9), transparent 32rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #ffffff 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.auth-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 620px) minmax(460px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding: clamp(16px, 2.6vw, 34px) clamp(20px, 4vw, 54px) 14px;
}

.auth-card {
  width: min(100%, 680px);
  max-height: calc(100vh - 72px);
  padding: clamp(22px, 3.2vw, 42px);
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand i,
.field i,
.hero-feature i,
.language i {
  stroke-width: 2.2;
}

.form-head {
  margin-top: clamp(22px, 4vh, 42px);
  margin-bottom: clamp(16px, 3vh, 26px);
}

.form-head h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.field-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.field {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.field input::placeholder {
  color: #77839a;
}

.icon-only {
  width: 30px;
  height: 30px;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: #627088;
}

.icon-only:hover {
  background: #f1f5f9;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.primary-btn,
.provider-btn {
  min-height: 48px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.primary-btn {
  margin-top: 8px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6 0%, var(--blue) 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.primary-btn:hover,
.provider-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled,
.provider-btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 18px 0 12px;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.providers {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.provider-btn {
  width: 52px;
  min-height: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: none;
}

.provider-btn svg,
.provider-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.switch-copy {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}

.message {
  min-height: 18px;
  margin-top: 4px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

.message.success {
  color: #15803d;
}

.auth-visual {
  height: min(760px, calc(100vh - 72px));
  position: relative;
  display: grid;
  align-content: center;
  overflow: hidden;
}

.language {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #121827;
  font-size: 17px;
}

.visual-copy {
  max-width: 570px;
  margin-bottom: 18px;
}

.visual-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

.visual-copy p {
  max-width: 520px;
  margin: 0;
  color: #4e5b70;
  font-size: 17px;
  line-height: 1.42;
}

.hosting-art {
  position: relative;
  width: min(820px, 100%);
  min-height: min(430px, 46vh);
  border-radius: 40px;
}

.platform {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 20px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #eef4ff);
  box-shadow: 0 34px 60px rgba(59, 130, 246, 0.12);
}

.server-rack {
  position: absolute;
  right: 16%;
  top: 50px;
  width: 300px;
  height: 340px;
}

.rack-layer {
  position: absolute;
  left: 0;
  width: 300px;
  height: 78px;
  border: 1px solid rgba(213, 222, 235, 0.9);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #eef4fb 100%);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.11);
}

.rack-layer:nth-child(1) { top: 0; }
.rack-layer:nth-child(2) { top: 66px; }
.rack-layer:nth-child(3) { top: 132px; }
.rack-layer:nth-child(4) { top: 198px; }
.rack-layer:nth-child(5) { top: 264px; }

.rack-layer::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 26px;
  width: 96px;
  height: 9px;
  border-radius: 999px;
  background: #dbe3ef;
  box-shadow: 0 18px 0 #e5ebf4;
}

.rack-layer::after {
  content: "";
  position: absolute;
  right: 58px;
  top: 34px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f6df6;
  box-shadow: 18px 0 0 #7ba8ff, 36px 0 0 #b5c9f8;
}

.site-window {
  position: absolute;
  left: 6%;
  bottom: 42px;
  width: 390px;
  min-height: 226px;
  border: 1px solid rgba(213, 222, 235, 0.94);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #edf4ff);
  box-shadow: var(--shadow);
  padding: 34px;
  transform: rotate(5deg);
}

.site-window::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 20px 0 0 #cbd5e1, 40px 0 0 #cbd5e1;
}

.url-pill {
  position: absolute;
  top: 40px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d6e0ef;
  border-radius: 999px;
  background: #fff;
  color: #223049;
  font-size: 13px;
  font-weight: 800;
}

.image-block {
  width: 170px;
  height: 98px;
  margin-top: 54px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.02)),
    linear-gradient(135deg, transparent 48%, rgba(37, 99, 235, 0.26) 49% 70%, transparent 71%),
    #dceaff;
}

.line-stack {
  position: absolute;
  right: 38px;
  bottom: 32px;
  width: 132px;
  display: grid;
  gap: 13px;
}

.line-stack span {
  height: 16px;
  border-radius: 5px;
  background: #dce5f2;
}

.floating {
  position: absolute;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(213, 222, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.floating.cloud {
  left: 12%;
  top: 38px;
  color: #2563eb;
}

.floating.ssl {
  right: 2%;
  top: 156px;
  color: #16a34a;
  font-weight: 900;
}

.floating.speed {
  right: 12%;
  bottom: 56px;
  color: #2563eb;
}

.dashed-path {
  position: absolute;
  inset: 92px 52px 100px 140px;
  border: 2px dashed rgba(37, 99, 235, 0.34);
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

.globe-ball {
  position: absolute;
  left: 5%;
  bottom: 74px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(37, 99, 235, 0.36) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(37, 99, 235, 0.36) 49% 51%, transparent 52%),
    radial-gradient(circle at 35% 25%, #fff, #bcd4ff);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
}

.hero-feature i {
  color: var(--blue);
}

.hero-feature strong {
  display: block;
  margin-bottom: 5px;
}

.hero-feature span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.auth-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 34px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-height: 820px) {
  .auth-card {
    padding: 22px;
  }

  .form-head {
    margin-top: 18px;
    margin-bottom: 14px;
  }

  .form-head h1 {
    font-size: 28px;
  }

  .auth-form {
    gap: 10px;
  }

  .field {
    min-height: 44px;
  }

  .divider {
    margin: 12px 0 9px;
  }

  .primary-btn,
  .provider-btn {
    min-height: 44px;
  }

  .provider-btn {
    width: 44px;
    height: 44px;
  }

  .switch-copy {
    margin-top: 12px;
  }

  .visual-copy h2 {
    font-size: 30px;
  }

  .hosting-art {
    min-height: 340px;
    transform: scale(0.82);
    transform-origin: left top;
    width: 122%;
  }

  .hero-features {
    display: none;
  }
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px 22px;
  }

  .auth-card {
    margin: 0 auto;
    max-height: calc(100vh - 32px);
  }

  .auth-visual {
    display: none;
  }

  .language {
    position: static;
    justify-self: end;
    margin-bottom: 28px;
  }
}

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

  .auth-card {
    padding: 16px;
    border-radius: 12px;
  }

  .brand {
    font-size: 22px;
  }

  .form-head {
    margin-top: 16px;
  }

  .form-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hosting-art {
    min-height: 380px;
    transform: scale(0.74);
    transform-origin: top left;
    width: 135%;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .auth-footer {
    display: none;
  }
}

@media (max-width: 420px), (max-height: 700px) {
  .brand span {
    font-size: 18px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .form-head p,
  .divider {
    display: none;
  }

  .field-group label {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .field input,
  .switch-copy,
  .form-row {
    font-size: 13px;
  }

  .message {
    font-size: 12px;
  }
}
