/*
 * Shared styles for the accounts/progress feature: the records bubble on
 * every menu page, the end-screen widgets (saved-note, new-best badge,
 * five-session conversion prompt) rendered by shared/account-ui.js, and
 * the cuenta/ auth forms (register/login/verify/reset). Kept separate
 * from shell.css / menu.css since this is one cohesive feature, not base
 * scaffolding.
 */

.account-widget { width: 100%; }

/* ---- records bubble: top-right on every menu page, just left of the
   language switcher (shell.css's .lang-switcher sits at right: 12px,
   44px wide) - same round-button look as .lang-current/.home-nav-btn. ---- */
.records-switcher {
  position: absolute;
  top: 12px;
  right: 64px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
  -webkit-tap-highlight-color: transparent;
  transition: transform .05s;
}
.records-switcher:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.records-switcher svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--purple-dark);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- end-screen widgets ---- */

.account-saved-note {
  font-size: .8rem;
  opacity: .75;
  margin: .2rem 0;
}

.account-new-best {
  display: inline-block;
  font-size: .85rem;
  font-weight: bold;
  color: #fff;
  background: var(--green);
  padding: .25rem .8rem;
  border-radius: 999px;
  box-shadow: 0 3px 0 #298c34;
  margin: .3rem 0;
  animation: newBestPop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes newBestPop {
  0%   { opacity: 0; transform: scale(.5); }
  70%  { opacity: 1; transform: scale(1.12); }
  100% { transform: scale(1); }
}

.conversion-prompt {
  margin-top: .8rem;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .85);
  max-width: 360px;
}

.conversion-title {
  margin: 0 0 .3rem;
  font-size: 1rem;
  color: var(--purple-dark);
}

.conversion-body {
  margin: 0 0 .6rem;
  font-size: .82rem;
  color: var(--ink);
}

.conversion-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.conversion-btn {
  font-family: inherit;
  font-size: .82rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.conversion-create {
  background: var(--purple);
  color: #fff;
}

.conversion-keep {
  background: transparent;
  color: var(--purple-dark);
  text-decoration: underline;
}

.conversion-teacher {
  background: var(--key);
  color: var(--key-text);
}

/* ---- cuenta/ auth forms (register, login, verify, reset) - live inside
   menu.css's .board (teal, white text), so fields need their own white
   background for contrast. ---- */

.am-role-choice {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 360px;
  margin: 1.2rem auto 0;
}

.am-role-btn {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  color: var(--purple-dark);
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
  transition: transform .05s;
}
.am-role-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.am-role-btn small { display: block; margin-top: .3rem; font-size: .78rem; opacity: .75; font-weight: normal; }

.am-form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 360px;
  margin: 1.2rem auto 0;
  text-align: left;
}

.am-field { display: flex; flex-direction: column; gap: .3rem; }
.am-field label { color: #fff; font-size: .82rem; }
.am-field input {
  font-family: inherit;
  font-size: 1rem;
  padding: .6rem .8rem;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: var(--ink);
}

.am-consent { flex-direction: row; align-items: flex-start; gap: .5rem; }
.am-consent input { width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.am-consent label { color: #fff; font-size: .78rem; line-height: 1.4; }
.am-consent label a { color: #fff; text-decoration: underline; }

.am-submit {
  font-family: inherit;
  font-size: 1.1rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 #b5323f;
  transition: transform .05s;
}
.am-submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #b5323f; }
.am-submit:disabled { opacity: .6; cursor: default; }

.am-status {
  margin: 0;
  font-size: .85rem;
  color: #fff;
  text-align: center;
}
.am-status.am-status-error { color: #ffe1e1; font-weight: bold; }
.am-status.am-status-ok { color: #d9ffe6; font-weight: bold; }

.am-links {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  text-align: center;
  margin-top: .4rem;
}
.am-links a { color: #fff; font-size: .82rem; text-decoration: underline; }
