/* Pantalla de registro / login */

body.boot-pending .sidebar,
body.auth-screen .sidebar {
  display: none !important;
}

body.boot-pending #app,
body.auth-screen #app {
  display: block;
}

body.boot-pending .main,
body.auth-screen .main {
  min-height: 100svh;
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

body.auth-screen {
  overflow: auto;
}

.auth-view {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-brand {
  text-align: center;
}

.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #0f0f0f;
  color: #c8f064;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  margin: 0 0 6px;
}

.auth-brand p {
  color: var(--text-2);
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  background: var(--bg-subtle, var(--bg));
  padding: 4px;
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

.auth-card .field {
  margin-bottom: 14px;
}

.auth-legal-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 4px 0 14px;
}

.auth-legal-check input {
  margin-top: 3px;
}

.auth-legal-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.auth-error {
  color: var(--danger, #c0392b);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.auth-hint {
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 14px 0 0;
}

.auth-forgot-link,
.auth-back {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.auth-reset-url {
  display: block;
  margin: 10px 0 16px;
  word-break: break-all;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--accent);
}

.auth-legal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-legal-dialog {
  width: min(560px, 100%);
  max-height: 86svh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-legal-dialog h2 {
  margin: 0;
  font-size: 1.2rem;
}

.auth-legal-body {
  overflow: auto;
  max-height: 60svh;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* Volver a la landing pública desde login/registro */
.auth-to-landing {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--text-2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
}

.auth-to-landing:hover { color: var(--text); }
