/* Agendalo.uy — Auth styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --ag-ink: #102e50;
  --ag-ink-hover: #1B466F;
  --ag-blue: #75a9d2;
  --ag-blue-hover: #8fc0e8;
  --ag-blue-soft: #DCECF6;
  --ag-pale: #EEF5FA;
  --ag-paper: #FBFCFE;
  --ag-line: #DFE8EF;
  --ag-muted: #718092;
  --ag-muted-light: #94A3B8;
  --ag-subtle: #9AA6B2;
  --ag-success: #4E927F;
  --ag-danger: #B95C68;
  --ag-ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }

body, html {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background-color: var(--ag-ink) !important;
  color: var(--ag-ink);
  margin: 0;
  padding: 0;
}

.ag-auth {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   Panel izquierdo — Marca (Fondo blanco)
   ========================================================================== */
.ag-auth-brand {
  flex: 0 0 42%;
  background: radial-gradient(circle at 20% 25%, rgba(117, 169, 210, 0.09) 0%, transparent 60%), #ffffff;
  color: var(--ag-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--ag-line);
}

.ag-auth-brand .brand-lockup {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: relative;
  z-index: 1;
}

.ag-auth-brand .brand-lockup img {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
}

.ag-auth-brand .brand-lockup .brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.04em;
  color: var(--ag-ink);
  line-height: 1;
}

.ag-auth-brand .brand-lockup .brand-tag {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  color: var(--ag-muted);
  margin-top: .25rem;
  letter-spacing: .02em;
}

.ag-auth-brand .hero-mark {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2rem 0;
}

.ag-auth-brand .hero-mark img {
  width: min(320px, 65%);
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 20px 35px rgba(16, 46, 80, 0.12));
  transition: transform 300ms var(--ag-ease);
}

.ag-auth-brand .hero-mark img:hover {
  transform: scale(1.02);
}

.ag-auth-brand .brand-quote {
  position: relative;
  z-index: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  line-height: 1.6;
  color: #55687d;
  max-width: 360px;
}

.ag-auth-brand .brand-quote strong {
  color: var(--ag-ink);
  font-weight: 700;
}

/* ==========================================================================
   Panel derecho — Formulario (Fondo azul / ink)
   ========================================================================== */
.ag-auth-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
  background: linear-gradient(145deg, #102e50 0%, #0a1f38 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ag-auth-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(117, 169, 210, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(117, 169, 210, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.ag-auth-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

/* Mobile brand logo (visible only on <= 900px) */
.ag-mobile-brand {
  display: none;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}

.ag-mobile-brand .mobile-logo-badge {
  width: 46px;
  height: 46px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ag-mobile-brand .mobile-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ag-mobile-brand .brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.03em;
  color: #ffffff;
  line-height: 1.1;
}

.ag-mobile-brand .brand-tag {
  display: block;
  font-size: .7rem;
  color: rgba(255, 255, 255, 0.65);
}

.ag-auth-card .form-head {
  margin-bottom: 2rem;
}

.ag-auth-card .form-head h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -.035em;
  color: #ffffff;
  margin: 0 0 .45rem;
  line-height: 1.18;
}

.ag-auth-card .form-head p {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--ag-muted-light);
  margin: 0;
  line-height: 1.5;
}

.ag-form-group {
  margin-bottom: 1.15rem;
}

.ag-form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .83rem;
  font-weight: 600;
  color: #F1F5F9;
  margin-bottom: .45rem;
  letter-spacing: .01em;
}

.ag-input {
  display: block;
  width: 100%;
  padding: .78rem .95rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms var(--ag-ease), box-shadow 160ms var(--ag-ease);
}

.ag-input::placeholder {
  color: #94A3B8;
}

.ag-input:focus {
  border-color: var(--ag-blue);
  box-shadow: 0 0 0 3.5px rgba(117, 169, 210, 0.35);
  background: #ffffff;
  color: #0f172a;
}

.ag-input.is-invalid {
  border-color: #f87171;
  background: #fff;
}

.ag-input.is-invalid:focus {
  box-shadow: 0 0 0 3.5px rgba(248, 113, 113, 0.3);
}

.ag-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: .4rem 0 1.4rem;
  font-size: .85rem;
}

.ag-checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #CBD5E1;
  cursor: pointer;
  user-select: none;
}

.ag-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--ag-blue);
  cursor: pointer;
}

.ag-link {
  color: var(--ag-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms var(--ag-ease);
}

.ag-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ag-btn {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.01em;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 160ms var(--ag-ease);
  text-align: center;
  text-decoration: none;
}

.ag-btn-primary {
  background: var(--ag-blue);
  color: var(--ag-ink);
  border-color: var(--ag-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ag-btn-primary:hover {
  background: var(--ag-blue-hover);
  border-color: var(--ag-blue-hover);
  color: var(--ag-ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(117, 169, 210, 0.35);
}

.ag-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  margin-top: .75rem;
}

.ag-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ag-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.4rem 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ag-divider::before,
.ag-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

/* Alertas */
.ag-alert {
  padding: .75rem .9rem;
  border-radius: 10px;
  font-size: .85rem;
  margin-bottom: 1.2rem;
  border: 1px solid transparent;
}

.ag-alert-success {
  background: rgba(78, 146, 127, 0.22);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.4);
}

.ag-alert-danger {
  background: rgba(185, 92, 104, 0.22);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.4);
}

.ag-alert-warning {
  background: rgba(217, 119, 6, 0.22);
  color: #fef08a;
  border-color: rgba(250, 204, 21, 0.4);
}

/* Promo Card (ej: Registro) */
.ag-promo-card {
  background: rgba(117, 169, 210, 0.12);
  border: 1px solid rgba(117, 169, 210, 0.32);
  color: #ffffff;
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .ag-auth-brand { display: none; }
  .ag-auth-form { padding: 2.5rem 1.5rem; }
  .ag-mobile-brand { display: flex; }
}

@media (max-width: 480px) {
  .ag-auth-form { padding: 2rem 1.2rem; }
  .ag-auth-card .form-head h1 { font-size: 1.55rem; }
}

