:root {
  --primary: #0c8ce9;
  --page-bg: #f8f9fa;
  --text: #000000;
  --muted: #7e7e7e;
  --header-height: 88px;
  --container: 1376px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Jaldi", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 249, 250, 0.75);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header-height);
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  --logo-scale: 1;
  display: inline-flex;
  align-items: center;
  gap: calc(10.351px * var(--logo-scale));
}

.brand-icon-wrap {
  width: calc(40px * var(--logo-scale));
  height: calc(40px * var(--logo-scale));
  border-radius: calc(10px * var(--logo-scale));
  background: var(--primary);
  display: grid;
  place-items: center;
}

.brand-icon {
  width: calc(30px * var(--logo-scale));
  height: calc(30px * var(--logo-scale));
}

.brand-word {
  width: calc(149.682px * var(--logo-scale));
  height: calc(29.991px * var(--logo-scale));
}

.btn-top {
  height: 41px;
  min-width: 128px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  font-size: 24px;
  line-height: 1;
  padding: 8px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-install-btn {
  gap: 8px;
  padding-inline: 8px;
  white-space: nowrap;
}

.header-install-btn img {
  width: 13.867px;
  height: 16px;
  flex: 0 0 auto;
}

.signup-main {
  height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.signup-panel,
.illustration-panel {
  background: var(--page-bg);
}

.signup-panel {
  padding: 40px 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signup-card {
  width: min(512px, 100%);
  height: min(710px, calc(100vh - var(--header-height) - 148px));
  min-height: 0;
  border-radius: 8px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  background: var(--page-bg);
  padding: 23px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.signup-card h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
}

.field-label {
  font-size: 14px;
  line-height: 1;
}

.signup-card input[type="email"],
.signup-card input[type="password"] {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  padding: 7px 14px;
  font-family: "Jaldi", sans-serif;
  font-size: 17px;
  color: #000000;
}

.signup-card input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.btn-continue {
  width: 212px;
  height: 48px;
  border-radius: 37px;
  border: 1px solid #000000;
  box-shadow: 0 2px 0 #000000;
  background: var(--primary);
  color: #ffffff;
  font-family: "Jaldi", sans-serif;
  font-size: 17px;
  margin-inline: auto;
  cursor: pointer;
}

.muted-group {
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.otp-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.otp-row input {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.95);
  font-family: "Jaldi", sans-serif;
  font-size: 14px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

.password-rules {
  margin: 0;
  padding-left: 24px;
  width: 283px;
  font-family: "Jaldi", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  color: var(--muted);
}

.terms-block {
  width: 283px;
  margin-inline: auto;
  text-align: center;
}

.terms-block p,
.terms-block a {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.terms-block a {
  color: var(--primary);
}

.signup-footer {
  margin: 0;
  font-size: clamp(18px, 2.4vh, 24px);
  color: #969696;
  text-align: center;
}

.footer-cta-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.footer-cta-links a {
  font-size: 14px;
  color: #969696;
  text-decoration: none;
}

.footer-cta-links a:hover {
  text-decoration: underline;
}

.illustration-panel {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  padding: 10px 32px;
}

.illustration {
  width: min(636px, 100%);
  max-height: min(600px, calc(100vh - var(--header-height) - 64px));
  object-fit: contain;
}

@media (max-height: 930px) and (min-width: 1101px) {
  .signup-panel {
    padding: 28px 40px 14px;
    gap: 10px;
  }

  .signup-card {
    height: min(710px, calc(100vh - var(--header-height) - 86px));
    padding: 16px 29px;
    gap: 8px;
  }

  .signup-card h1 {
    font-size: 24px;
  }

  .signup-card input[type="email"],
  .signup-card input[type="password"],
  .otp-row input {
    height: 48px;
  }

  .btn-continue {
    height: 44px;
  }

  .otp-row {
    gap: 12px;
  }

  .password-rules,
  .terms-block p,
  .terms-block a {
    font-size: 13px;
    line-height: 1.1;
  }

  .signup-footer {
    font-size: 18px;
  }

  .illustration {
    max-height: calc(100vh - var(--header-height) - 40px);
  }
}

@media (max-width: 1100px) {
  .signup-main {
    grid-template-columns: 1fr;
  }

  .illustration-panel {
    display: none;
  }

  .signup-panel {
    padding: 20px 32px 14px;
    gap: 10px;
  }

  .signup-card {
    height: min(710px, calc(100vh - var(--header-height) - 74px));
    padding: 15px 30px;
    gap: 12px;
  }
}
