/* Registration page — unique styles (not reused elsewhere) */

.rd-register-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--rd-bg-secondary);
  padding: 40px 15px;
  box-sizing: border-box;
}

.rd-register {
  width: 100%;
  max-width: 1034px;
}

.rd-register__card {
  background-color: var(--rd-bg-primary);
  border-radius: 20px;
  box-shadow: var(--rd-shadow-default);
  padding: 40px 57px 50px;
}

.rd-register__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.rd-register__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 55px;
}

.rd-register__logo-mark {
  height: 100%;
  width: auto;
  display: block;
}

.rd-register__logo-text {
  font-family: 'Stolzl', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--rd-heading);
}

.rd-register__header-login {
  display: none;
  font-family: 'Stolzl', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--rd-text-tertiary);
  text-decoration: none;
  white-space: nowrap;
}

.rd-register__header-login:hover {
  color: var(--rd-text-secondary);
  text-decoration: none;
}

.rd-register__title {
  font-family: 'Stolzl', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--rd-heading);
  margin: 0 0 24px;
}

.rd-register__subtitle {
  font-family: 'Stolzl', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--rd-text-secondary);
  margin: 0 0 24px;
}

/* ── Tabs ── */
.rd-register__tabs {
  display: flex;
  gap: 5px;
  max-width: 450px;
  height: 60px;
  background-color: var(--rd-bg-primary);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.rd-register__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Stolzl', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--rd-heading);
  background-color: var(--rd-bg-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 12px 24px;
  -webkit-tap-highlight-color: transparent;
}

.rd-register__tab:hover {
  background-color: var(--rd-bg-tertiary);
}

.rd-register__tab.is-active {
  background-color: var(--rd-bg-tertiary);
  color: var(--rd-text-accent);
}

.rd-register__tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Form fields grid ── */
.rd-register__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  margin-bottom: 20px;
}

/* Remove max-width constraint for inputs inside registration form */
.rd-register__fields .rd-input,
.rd-register__fields .rd-phone {
  max-width: none;
}


.rd-register__field-group {
  display: flex;
  flex-direction: column;
}

/* ── Error callouts ── */
.rd-register__errors {
  margin-bottom: 20px;
}

.rd-register__error-callout {
  padding: 10px 16px;
  border-radius: 5px;
  background-color: var(--rd-alert-error-bg);
  border: 1px solid var(--rd-alert-error-border);
  color: var(--rd-text-primary);
  font-family: 'Stolzl', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 8px;
}

.rd-register__error-callout:last-child {
  margin-bottom: 0;
}

/* ── Password hints ── */
.rd-register__password-hints {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 24px;
}

.rd-register__password-hints ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rd-register__password-hints li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Stolzl', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.275;
  color: var(--rd-text-tertiary);
}

.rd-register__password-hints li::before {
  content: '\00d7';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

/* ── Checkboxes (CLOUD) ── */
.rd-register__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.rd-register__checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rd-register__checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--rd-btn-primary);
  cursor: pointer;
}

.rd-register__checkbox-row label {
  font-family: 'Stolzl', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--rd-text-primary);
  cursor: pointer;
}

.rd-register__checkbox-row label a {
  color: var(--rd-text-accent);
  text-decoration: none;
}

.rd-register__checkbox-row label a:hover {
  color: var(--rd-text-accent-hover);
  text-decoration: underline;
}

/* ── Captcha ── */
.rd-register__captcha {
  display: flex;
  justify-content: center;
}

.rd-register__captcha:has(.smart-captcha-container) {
  margin-bottom: 24px;
}

/* ── Submit button ── */
.rd-register__submit {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 16px;
  display: flex;
}

/* ── Footer link ── */
.rd-register__footer-link {
  display: block;
  text-align: center;
  font-family: 'Stolzl', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--rd-text-accent);
  text-decoration: none;
}

.rd-register__footer-link:hover {
  color: var(--rd-text-accent-hover);
  text-decoration: none;
}

/* ── Phone floating label — styles now in _phone.scss (rd-phone--floating) ── */

/* ── Password hints placement (right column on desktop) ── */
.rd-register__field-group--hints {
  grid-column: 2 / -1;
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .rd-register-page {
    padding: 0;
    align-items: flex-start;
  }

  .rd-register {
    max-width: none;
  }

  .rd-register__card {
    border-radius: 0;
    box-shadow: none;
    padding: 55px 15px 40px;
    min-height: 100vh;
  }

  .rd-register__header {
    margin-bottom: 24px;
  }

  .rd-register__logo {
    height: 31px;
  }

  .rd-register__header-login {
    display: block;
  }

  .rd-register__title {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .rd-register__subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .rd-register__tabs {
    max-width: none;
    height: 50px;
    border-radius: 5px;
    margin-bottom: 24px;
  }

  .rd-register__tab {
    font-size: 14px;
  }

  .rd-register__fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rd-register__submit {
    margin-bottom: 12px;
  }

  .rd-register__footer-link {
    font-size: 12px;
  }

  .rd-register__field-group--hints {
    grid-column: auto;
  }
}

/* ── Cross-browser fixes ── */

/* Firefox: remove inner focus ring on buttons */
.rd-register__tab::-moz-focus-inner,
.rd-register__submit::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Safari: fix input appearance */
.rd-register__card input[type="text"],
.rd-register__card input[type="email"],
.rd-register__card input[type="password"],
.rd-register__card input[type="tel"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Safari: fix border-radius on inputs */
.rd-register__card input {
  border-radius: 5px;
}

/* Autofill color fix for themed backgrounds */
.rd-register__card .rd-input__field:-webkit-autofill,
.rd-register__card .rd-input__field:-webkit-autofill:hover,
.rd-register__card .rd-input__field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 9999px var(--rd-input-bg) inset !important;
  -webkit-text-fill-color: var(--rd-input-text) !important;
  caret-color: var(--rd-input-text) !important;
}
