
/* ═══ AUTH CSS ═══ */
html, body { height:100%; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--surface);
  color: var(--on-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fondo con mesh gradient sutil */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(255,107,158,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(173,163,255,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(42,127,98,0.06) 0%, transparent 60%);
}

/* ── Layout ── */
.layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT ── */
.left {
  position: relative;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* blobs decorativos */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
}
.blob-1 { width:320px; height:320px; background: var(--pink-dim); top:-80px; left:-80px; opacity:0.7; }
.blob-2 { width:240px; height:240px; background: rgba(173,163,255,0.15); bottom:60px; left:40px; }
.blob-3 { width:180px; height:180px; background: rgba(42,127,98,0.10); top:50%; left:60%; }

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeUp 0.5s ease both;
}

.logo-placeholder {
  width: 70px; height: 70px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;  
}
.logo-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.placeholder-text {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--violet);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--violet);
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--on-bg-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.left-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeUp 0.5s 0.1s ease both;
}

.left-hero h1 {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--on-surface);
}

.accent-green { color: var(--pink); }
.accent-gold  { color: var(--primary); }

.left-hero p {
  font-size: 0.92rem;
  color: var(--on-bg-muted);
  line-height: 1.7;
  max-width: 380px;
}

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-low);
  border: 1.5px solid var(--outline-variant, rgba(93,49,132,0.12));
  color: var(--on-bg);
  transition: border-color 0.2s, background 0.2s;
}
.pill:hover {
  border-color: var(--pink);
  background: var(--pink-dim);
}

/* badge */
.mascote-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface-low);
  border: 1.5px solid var(--outline-variant, rgba(93,49,132,0.12));
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px var(--shadow-surface);
  max-width: 340px;
}
.badge-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(42,127,98,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.badge-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}
.badge-text {
  font-size: 0.75rem;
  color: var(--on-bg-muted);
}

.left-footer {
  font-size: 0.72rem;
  color: var(--on-bg-muted);
  animation: fadeUp 0.5s 0.2s ease both;
}

/* ── RIGHT ── */
.right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeUp 0.5s 0.15s ease both;
}

/* card */
.card {
  background: var(--surface-low);
  border: 1.5px solid var(--outline-variant, rgba(93,49,132,0.12));
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px var(--shadow-surface-lg);
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 420px;
}

/* tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface-mid);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.75rem;
}
.tab-btn {
  background: transparent;
  border: none;
  padding: 0.55rem;
  border-radius: calc(var(--radius-md) - 2px);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-bg-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--primary);
  color: #1a0e00;
  box-shadow: 0 2px 8px rgba(232,168,0,0.25);
}

/* form */
.form-title {
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--on-surface);
  margin-bottom: 0.35rem;
}
.form-sub {
  font-size: 0.8rem;
  color: var(--on-bg-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface-mid);
  border: 1.5px solid var(--outline-variant, rgba(93,49,132,0.12));
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--on-bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--violet-light);
  box-shadow: 0 0 0 3px var(--violet-dim);
  background: var(--surface-low);
}
.field input::placeholder { color: var(--on-bg-muted); }
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 80px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.8rem; }
.pw-toggle {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--on-bg-muted);
  display: flex; align-items: center;
  transition: color 0.2s;
}
.pw-toggle:hover { color: var(--violet); }

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary);
  color: #1a0e00;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232,168,0,0.28);
  display: block;
  margin-top: 0.25rem;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,168,0,0.35);
}
.btn-primary:active { transform: translateY(0); }

.divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--on-bg-muted);
  margin: 1.25rem 0 0.5rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--violet);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.link-btn:hover { color: var(--pink); }

/* roles */
.role-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-bottom: 0.6rem;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.role-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 0.5rem;
  background: var(--surface-mid);
  border: 1.5px solid var(--outline-variant, rgba(93,49,132,0.12));
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.role-card:hover {
  border-color: var(--violet-light);
  background: var(--violet-dim);
}
.role-card.selected {
  border-color: var(--pink);
  background: var(--pink-dim);
  box-shadow: 0 2px 12px var(--pink-dim);
}
.role-icon { font-size: 1.4rem; }
.role-name { font-size: 0.75rem; font-weight: 700; color: var(--on-bg); }
.role-desc { font-size: 0.65rem; color: var(--on-bg-muted); }

.dynamic-fields { display: none; }
.dynamic-fields.visible { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* success */
.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 0;
}
.success-screen.visible { display: flex; }
.success-icon { font-size: 3rem; }
.success-screen h2 {
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  color: var(--on-surface);
}
.success-screen p { color: var(--on-bg-muted); font-size: 0.88rem; line-height: 1.6; }

/* toast */
.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--on-surface);
  color: var(--surface-low);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(30,18,50,0.18);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .left { display: none; }
  .right { padding: 1.5rem 1rem; align-items: flex-start; padding-top: 3rem; }
}
