/* Entrar / criar conta: mesmo céu da tela de aprendizes, com um cartão branco no centro. */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, #29a8f3 0%, #35b2fa 22%, #4abffe 45%, #68cdfd 68%, #92dcfa 100%);
}

.auth-screen[hidden],
.auth-screen [hidden] {
  display: none !important;
}

body.auth-screen-open {
  overflow: hidden;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 0 rgba(9, 54, 94, 0.18), 0 24px 40px rgba(9, 54, 94, 0.28);
  text-align: center;
}

.auth-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 6px 14px rgba(9, 54, 94, 0.25);
}

.auth-card h1 {
  margin: 0;
  color: #0f5c99;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
}

.auth-subtitle {
  margin: -6px 0 0;
  color: #475569;
  font-weight: 800;
}

.auth-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #e8f4fd;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f5c99;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.auth-tab[aria-pressed="true"] {
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(9, 54, 94, 0.18);
}

.auth-form {
  width: 100%;
  display: grid;
  gap: 14px;
  text-align: left;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.auth-form input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
}

.auth-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-message.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.auth-message.is-notice {
  background: #ecfdf5;
  color: #047857;
}

.auth-submit {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4abffe, #1d8fe0);
  color: #ffffff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 950;
  box-shadow: 0 5px 0 #14659f;
  cursor: pointer;
  touch-action: manipulation;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.auth-link {
  margin-top: -4px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #1d6fd6;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

/* Conta conectada, embaixo da tela "Quem vai treinar hoje?". */
.profile-picker-account {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(5, 22, 38, 0.6);
}

.profile-picker-account[hidden] {
  display: none;
}

/* O e-mail da conta numa linha própria, acima dos botões. */
.profile-picker-account > span:first-child {
  flex-basis: 100%;
  text-align: center;
}

.profile-sign-out {
  min-height: 38px;
  padding: 0 16px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

/* Regra da senha nova, embaixo do campo (criar conta e trocar senha). */
.auth-password-hint {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.auth-password-hint[hidden] {
  display: none;
}
