html.rentedu-auth-pending #root,
html.rentedu-auth-locked #root {
  display: none !important;
}

.rentedu-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow: auto;
  background: #f4f7fb;
  font-family: Inter, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #101828;
}

.rentedu-auth-shell {
  width: min(100%, 960px);
  min-height: min(680px, calc(100vh - 40px));
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  overflow: hidden;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.14);
}

.rentedu-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(16, 35, 29, 0.94), rgba(19, 48, 56, 0.96)),
    linear-gradient(90deg, #10231d, #17324a);
}

.rentedu-auth-brand-top,
.rentedu-auth-mini-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rentedu-auth-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.rentedu-auth-brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.rentedu-auth-brand-copy {
  max-width: 330px;
}

.rentedu-auth-kicker {
  margin: 0 0 12px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rentedu-auth-brand-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.rentedu-auth-brand-copy p:last-child {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 650;
}

.rentedu-auth-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.rentedu-auth-status div {
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.rentedu-auth-status div:last-child {
  border-right: 0;
}

.rentedu-auth-status strong {
  display: block;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.rentedu-auth-status span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.rentedu-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.rentedu-auth-mini-logo {
  display: none;
  margin-bottom: 22px;
}

.rentedu-auth-mini-logo .rentedu-auth-mark {
  background: #0f766e;
  color: #ffffff;
}

.rentedu-auth-eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rentedu-auth-title {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.rentedu-auth-subtitle {
  margin: 12px 0 0;
  max-width: 390px;
  color: #667085;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
}

.rentedu-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 26px 0 18px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}

.rentedu-auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.rentedu-auth-tab[aria-selected="true"] {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.rentedu-auth-form {
  display: grid;
  gap: 14px;
}

.rentedu-auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.rentedu-auth-field input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  color: #101828;
  padding: 0 14px;
  outline: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rentedu-auth-field input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.rentedu-auth-submit {
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rentedu-auth-submit:hover {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
}

.rentedu-auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.rentedu-auth-error {
  display: none;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b42318;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.rentedu-auth-error[data-show="true"] {
  display: block;
}

.rentedu-auth-note {
  margin: 16px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  text-align: center;
}

.rentedu-auth-loading-card {
  width: min(100%, 360px);
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.14);
  padding: 24px;
  text-align: center;
}

.rentedu-auth-loading {
  font-size: 14px;
  font-weight: 850;
  color: #0f766e;
}

@media (max-width: 780px) {
  .rentedu-auth-screen {
    padding: 12px;
    place-items: stretch;
  }

  .rentedu-auth-shell {
    min-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
  }

  .rentedu-auth-brand {
    display: none;
  }

  .rentedu-auth-card {
    padding: 26px 18px;
  }

  .rentedu-auth-mini-logo {
    display: flex;
  }

  .rentedu-auth-tabs {
    margin-top: 22px;
  }
}

/* Current auth markup polish */
.rentedu-auth-screen > .rentedu-auth-card {
  width: min(100%, 460px);
  box-sizing: border-box;
  display: block;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.14);
  padding: 34px;
}

.rentedu-auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.rentedu-auth-logo .rentedu-auth-mark {
  background: #0f766e;
  color: #ffffff;
}

.rentedu-auth-logo .rentedu-auth-title {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.rentedu-auth-logo .rentedu-auth-subtitle {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 520px) {
  .rentedu-auth-screen > .rentedu-auth-card {
    padding: 26px 18px;
  }
}

/* Mobile auth card should size to content, not stretch to full height */
@media (max-width: 780px) {
  .rentedu-auth-screen {
    place-items: center;
  }

  .rentedu-auth-screen > .rentedu-auth-card {
    align-self: center;
    justify-self: center;
  }
}
