* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-primary-color: #7bd900;
  --brand-dark-color: #599d00;
  --primary-text-color: #393737;
  --main-title-font-size: 32px;
  --verify-title-font-size: 48px;
  --sub-title-font-size: 20px;
  --font-semibold: 600;
  --base-font-size: 16px;
  --font-regular: 400;
  --button-lg-height: 50px;
  --button-sm-height: 30px;
  --button-xl-height: 75px;
  --radius: 6px;
}

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

html,
* {
  font-family: "Instrument Sans", sans-serif;
}

.hidden {
  display: none !important;
}

.link {
  color: var(--brand-dark-color);
  text-decoration: none;
  font-weight: 500;
}

h1 {
  font-size: var(--main-title-font-size);
  color: var(--primary-text-color);
  font-weight: var(--font-semibold);
  letter-spacing: -0.64px;
}

h3 {
  font-size: var(--sub-title-font-size);
  color: var(--primary-text-color);
  font-weight: var(--font-regular);
  letter-spacing: -0.4px;
}

.step-label {
  font-size: var(--base-font-size);
  color: var(--brand-dark-color);
  margin-bottom: 4px;
}

.step-label strong {
  color: var(--brand-dark-color);
  font-weight: 600;
}

.step-label .step-total {
  color: #000;
  font-weight: 400;
}

.verify-title {
  font-size: var(--verify-title-font-size);
  letter-spacing: -0.96px;
  margin-bottom: 12px;
}

.verify-desc {
  font-size: var(--base-font-size);
  color: #281d1b;
  line-height: 1.5;
  letter-spacing: -0.08px;
}

.resend-link {
  margin-top: 16px;
  text-align: right;
  font-size: var(--base-font-size);
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--button-lg-height);
  font-size: var(--base-font-size);
  border-radius: var(--radius);
  background-color: var(--brand-primary-color);
  border: 0;
  font-weight: var(--font-semibold);
  color: #203801;
  padding: 0px 15px;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
}

.primary-button:hover {
  background-color: #6dc400;
}

.small {
  height: var(--button-sm-height);
  font-size: 14px;
}

.x-large {
  height: var(--button-xl-height);
  font-size: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-input {
  width: 100%;
  height: 50px;
  padding: 15px;
  font-size: var(--base-font-size);
  border-radius: var(--radius);
  border: 1px solid #cbcbcb;
  background-color: #f7f7f7;
  outline: none;
}

.text-input:focus {
  border-color: var(--brand-dark-color);
}

label {
  font-size: 14px;
  font-weight: 500;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row > div {
  flex: 1;
}

.registration-flow {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  flex-shrink: 0;
}

.content {
  display: flex;
  flex: 1;
}

.content > section {
  flex-grow: 1;
  flex-basis: 0;
}

.branding {
  overflow: hidden;
  border-radius: 0 169px 0 0;
  position: relative;
}

.branding img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-title-group {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: flex;
}

.login-group {
  width: 555px;
  max-width: 100%;
}

.success-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 32px;
}

.success-title {
  font-size: var(--verify-title-font-size);
  letter-spacing: -0.96px;
}

.success-desc {
  font-size: var(--base-font-size);
  color: #281d1b;
  letter-spacing: -0.08px;
}

.success-btn {
  width: 284px;
}

.error-msg {
  color: #c0392b;
  font-size: 14px;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .branding {
    border-radius: 0 80px 0 0;
  }

  .login-group {
    width: 100%;
    padding: 0 40px;
  }

  h1 {
    font-size: 26px;
  }

  h3 {
    font-size: 17px;
  }

  .verify-title {
    font-size: 36px;
  }

  .success-title {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  html, body {
    overflow: auto;
  }

  .registration-flow,
  .success-screen {
    height: auto;
    min-height: 100%;
  }

  .header {
    padding: 12px 20px;
  }

  .header img {
    height: 32px;
  }

  .header p {
    font-size: 13px;
  }

  .content {
    flex-direction: column;
  }

  .branding {
    display: none;
  }

  .login-form {
    padding: 32px 24px;
    justify-content: flex-start;
  }

  .login-group {
    width: 100%;
    padding: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  h1 {
    font-size: 24px;
  }

  h3 {
    font-size: 16px;
  }

  .verify-title,
  .success-title {
    font-size: 28px;
  }

  .section-title-group {
    margin-bottom: 24px;
  }

  .success-btn {
    width: 100%;
  }

  .success-content {
    padding: 24px;
    justify-content: flex-start;
    padding-top: 48px;
  }
}
