/* panel-login.css: sign in, sign up and "Revisa tu correo" (the screens shown
   before the dashboard). The dashboard's CSS is split by area into
   panel-*.css files; dashboard.html loads them after style.css in this order:
   login, base, vista-previa, movil, controles, efectos-nombre, ayudas,
   dialogos, inicio, estadisticas, cuenta, apariencia, insignias, discord,
   archivos, buscar. At the same specificity a later file wins, so a
   rule that must beat another goes in a file loaded after it. Nothing a
   public profile shows belongs in any of them (style.css). */

.login-logo-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.login-brand {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sign-in and sign-up: a line under the title, icons inside the fields,
   the eye that shows the password (account.js), and gray hints below. */
.login-subtitle {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.input-with-icon {
  position: relative;
  display: flex;
}

.input-with-icon input {
  width: 100%;
  padding-left: 40px;
}

.input-with-icon.has-toggle input {
  padding-right: 44px;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  padding: 7px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text-primary);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}

.field-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.field-hint-strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.login-switch {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.login-switch-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-color);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.login-switch-link:hover,
.login-switch-link:focus-visible {
  text-decoration: underline;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 28px;
}

.forgot-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--accent-color);
}

.login-submit-btn {
  width: 100%;
  font-family: var(--font-title);
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 20px var(--accent-glow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.login-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 24px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.login-back-btn:hover {
  color: var(--text-primary);
}

.error-msg {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 14px;
  font-weight: 500;
}

/* "Revisa tu correo" screen (public/verificar-correo.js) */
#verify-screen.hidden {
  display: none !important;
}

.verify-status:empty {
  display: none;
}

.verify-card .verify-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
