/* ============================================================
   🔐 ENCARTADIGITAL.APP - AUTHENTICATION STYLES (CLEAN WHITE)
   ============================================================ */

:root {
  --bg-white: #ffffff;
  --bg-subtle: #fafafa;
  --bg-surface: #f4f4f5;
  --border-light: #e4e4e7;
  --border-focus: #09090b;

  --text-main: #09090b;
  --text-body: #3f3f46;
  --text-muted: #71717a;

  --radius-sm: 6px;
  --radius-md: 10px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: 100vh;
}

.mobile-auth-brand {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  justify-content: center;
}

@media (max-width: 860px) {
  .auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
  }

  .auth-aside {
    display: none !important;
  }

  .mobile-auth-brand {
    display: flex;
  }

  .auth-main {
    padding: 2rem 1.25rem !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Panel Lateral Izquierdo (Desktop) */
.auth-aside {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border-light);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--text-main);
  border-radius: 50%;
}

.brand-sub {
  color: var(--text-muted);
  font-weight: 600;
}

.aside-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.aside-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.aside-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Panel Principal */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--bg-white);
}

.auth-form-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.form-block {
  display: none;
}

.form-block.active {
  display: block;
  animation: formFadeIn 0.15s ease forwards;
}

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

.form-header {
  margin-bottom: 1.75rem;
}

.auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.field-label-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
}

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

.field-group input {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

.field-group input:focus {
  border-color: var(--border-focus);
}

.btn-submit-black {
  width: 100%;
  background: var(--text-main);
  color: #ffffff;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 0.5rem;
}

.btn-submit-black:hover {
  background: #27272a;
}

.auth-switch-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.link-switch-action {
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.link-switch-action:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.auth-alert {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
}

.auth-alert.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
