/* login screen styles (redesign) — builds on assets/css/testflow.css tokens */

.tf-auth-layout {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  background: var(--tf-surface);
}

.tf-auth-main {
  flex: 1 1 480px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 48px;
}

.tf-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tf-auth-center {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-auth-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tf-auth-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}

.tf-auth-reveal {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

.tf-auth-foot {
  margin: 0;
  font-size: 13px;
  color: var(--tf-muted);
}
.tf-auth-foot a { color: #475467; }

.tf-auth-aside {
  flex: 1 1 480px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 64px 56px;
  background: var(--tf-palette-5);
  color: var(--tf-palette-1);
}

.tf-auth-aside h2 {
  margin: 0;
  max-width: 460px;
  font-size: 34px;
  line-height: 1.2;
  color: #FFFFFF;
}

.tf-auth-aside ol {
  margin: 0;
  padding: 0;
  max-width: 460px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tf-auth-aside li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #34598F;
  border-radius: 0;
  background: #23457E;
}

.tf-auth-aside li > span {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--tf-palette-2);
  color: var(--tf-palette-5);
  font-weight: 700;
}

.tf-auth-aside strong {
  display: block;
  color: #FFFFFF;
}

@media (max-width: 767.98px) {
  /* Stacked: the form, then the three steps */
  .tf-auth-layout { min-height: 0; align-content: flex-start; }
  .tf-auth-aside { justify-content: flex-start; }
  .tf-auth-main,
  .tf-auth-aside { flex-basis: 100%; min-width: 0; }
  .tf-auth-main { gap: 28px; padding: 12px 16px 28px; }
  .tf-auth-top { margin: 0 -16px; padding: 0 16px 12px; border-bottom: 1px solid var(--tf-border); }
  .tf-auth-top svg { height: 24px; width: auto; }
  .tf-auth-top .tf-lang select { height: 44px; }
  .tf-auth-center { align-items: flex-start; }
  .tf-auth-form { max-width: none; }
  .tf-auth-title { font-size: 28px; }
  .tf-auth-form .form-control-lg { font-size: 16px; min-height: 48px; }
  .tf-auth-aside { gap: 18px; padding: 28px 16px; }
  .tf-auth-aside h2 { font-size: 22px; line-height: 1.25; }
  .tf-auth-aside ol { gap: 10px; }
  .tf-auth-aside li { padding: 14px; gap: 14px; }
}

.tf-auth-status {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-auth-status.is-success { background: var(--tf-success-soft); color: var(--tf-success); }
.tf-auth-status.is-error { background: var(--tf-danger-soft); color: var(--tf-danger); }

.tf-auth .form-check-label {
  color: var(--tf-text);
  opacity: 1;
}

.tf-auth .form-check-input {
  width: 20px;
  height: 20px;
}

/* Sign-up: a wider form, first and last name side by side */
.tf-auth-form-wide { max-width: 460px; }
.tf-auth-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.tf-auth-top-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}
.tf-auth .tf-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.tf-auth .tf-choice-head .tf-choice-price { padding: 0; width: auto; }
