
:root {
  color-scheme: light;
  font-family: Arial, "Noto Sans Arabic", sans-serif;
  color: #111111;
  background: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #155eef;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background-color: #f7f7f7;
}

.signup-card {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

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

.brand h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.progress {
  width: 100%;
  height: 3px;
  margin-bottom: 28px;
  overflow: hidden;
  background: #ededed;
}

.progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #111111;
  transition: width 180ms ease;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.description {
  margin: 0 0 24px;
  color: #666666;
  font-size: 14px;
  line-height: 1.9;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-bottom: 26px;
  padding: 12px 2px;
  color: #111111;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #d1d1d1;
  border-radius: 0;
  outline: none;
  transition: border-color 150ms ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  border-bottom-color: #111111;
}

input::placeholder {
  color: #777777;
  opacity: 1;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button:focus-visible {
  outline: 2px solid #555555;
  outline-offset: 3px;
}

.button.primary {
  color: #ffffff;
  background: #111111;
}

.button.primary:hover:not(:disabled) {
  background: #333333;
}

.button.primary:disabled {
  color: #ffffff;
  background: #777777;
  cursor: not-allowed;
}

.button.secondary {
  color: #555555;
  background: #ffffff;
  border-color: #e5e5e5;
}

.button.secondary:hover {
  color: #111111;
  border-color: #999999;
}

.full {
  width: 100%;
  min-height: 46px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.account-email {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: #666666;
  font-size: 13px;
}

.final-title {
  font-size: 29px !important;
}

.terms-description {
  margin-top: 14px;
}

.terms-description a {
  margin-inline: 2px;
}

.consents {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #444444;
  font-size: 13px;
  line-height: 1.9;
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: #111111;
  cursor: pointer;
}

.final-actions {
  margin-top: 32px;
}

.error-message {
  margin-bottom: 20px;
  padding: 12px;
  color: #b42318;
  background: #fff5f4;
  border: 1px solid #fecdca;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.error-message[hidden] {
  display: none;
}

.signin-link {
  margin: 22px 0 0;
  color: #666666;
  font-size: 13px;
  text-align: center;
}

.footer {
  margin-top: 32px;
  color: #888888;
  font-size: 11px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .page {
    align-items: flex-start;
    padding: 20px 12px;
    background-attachment: scroll;
  }

  .signup-card {
    max-width: 100%;
    padding: 23px 19px;
  }

  .step h2 {
    font-size: 23px;
  }

  .final-title {
    font-size: 27px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
