/* ==================================
   Better Bite Orlando - Registration
   ================================== */

body {
  flex-direction: column;
}

/* Registration page layout */
.register-page {
  min-height: calc(100vh - 85px);
}

/* Registration card */
.register-card {
  max-width: 570px;
  padding: 38px 40px;
}

/* First and Last Name */
.register-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.register-name-row .form-group label {
  padding-left: 0;
}

/* Form spacing */
.register-card:where(:not(.auth-split-page .register-card)) .form-group {
  margin-bottom: 18px;
}

/* Password guidance */
.password-hint {
  margin: 8px 0 0 46px;
  color: #555555;
  font-size: 11px;
  line-height: 1.5;
}

/* Terms and Privacy */
.register-consent {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;

  margin: 20px 0;
  font-size: 11px;
  color: #333333;
}

.register-consent input {
  margin-top: 2px;
  accent-color: var(--bbo-primary);
}

.register-consent label {
  line-height: 1.5;
}

.register-consent a {
  color: var(--bbo-orange-text);
  text-decoration: none;
}

.register-consent a:hover {
  text-decoration: underline;
}

/* Create account button */
.register-card:where(:not(.auth-split-page .register-card)) .login-btn {
  width: min(100%, 260px);
  margin: 0 auto;
}

/* Bottom Sign In link */
.register-card .register-link {
  margin-top: 20px;
}

/* Registration status */
#register-status {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
}

#register-status:empty {
  display: none;
}

/* Registration Success view */

.register-success[hidden] {
  display: none;
}

.register-card.is-success {
  max-width: 570px;
  padding: 45px 35px;
}

/* success content */

.register-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Green check icon */

.register-success-icon {
  width: 85px;
  height: 85px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px;

  border-radius: 50%;
  background-color: #a6c8a7;
  color: #3d622c;

  font-size: 45px;
}

/* heading */

.register-success h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 15px;
}

/* confirmation message */

.register-success-message {
  max-width: 400px;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.register-success-message strong {
  color: var(--bbo-primary);
}

/* thank you message */
.register-success-thanks {
  font-size: 14px;
  margin: 15px 0 30px;
}

/* sign in button */

.register-success-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 30px;

  background-color: var(--bbo-primary);
  color: white;

  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.register-success-button:hover {
  background-color: #2e4a22;
  color: white;
}

/* ==================================
   DEF-010: Registration Layout Fix
   ================================== */

/* Balance the left and right sections */
.register-page:where(:not(.auth-split-page)) {
  grid-template-columns:
    minmax(0, 480px)
    minmax(0, 570px);

  justify-content: center;
  align-items: center;

  gap: clamp(28px, 4vw, 72px);
}

/* Left information panel */
.register-page:where(:not(.auth-split-page)) .login-intro {
  width: 100%;
  max-width: 480px;

  padding: 30px;

  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;

  box-shadow: 0 8px 28px rgba(30, 55, 40, 0.08);
}

/* Improve title readability */
.register-page:where(:not(.auth-split-page)) .login-intro h1 {
  color: #23452b;

  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}

/* Improve description readability */
.register-page:where(:not(.auth-split-page)) .login-intro > p {
  color: #33443a;

  font-size: 15px;
  line-height: 1.7;
}

/* Improve benefit descriptions */
.register-page:where(:not(.auth-split-page)) .benefit {
  color: #263b2b;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.register-page:where(:not(.auth-split-page)) .login-intro {
  align-self: start;
  padding-top: 38px;
}

/* Tablet and mobile layout */
@media (max-width: 900px) {
  .register-page:where(:not(.auth-split-page)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .register-page:where(:not(.auth-split-page)) .login-intro {
    max-width: 600px;
    margin: 0 auto;

    padding: 24px;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  .register-page:where(:not(.auth-split-page)) .login-intro {
    padding: 20px;
  }

  .register-page:where(:not(.auth-split-page)) .login-intro h1 {
    font-size: 28px;
  }

  .register-page:where(:not(.auth-split-page)) .benefit {
    font-size: 13px;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .register-card {
    padding: 28px 20px;
  }

  .register-name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .register-name-row .form-group label {
    padding-left: 0;
  }

  .password-hint {
    margin-left: 38px;
  }

  .register-success h2 {
    font-size: 26px;
  }

  .register-success-icon {
    width: 75px;
    height: 75px;
    font-size: 40px;
  }

  .register-success-button {
    width: 100%;
  }
}
