/* GastoClaro · Pantalla de acceso a pantalla completa */
.auth-body { background: var(--surface); }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); }

/* Panel de marca */
.auth-brand { position: relative; overflow: hidden; background: #0C5148; color: #E9F5F2; padding: 2.2rem clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 2rem; }
.auth-brand::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.auth-brand-top { display: flex; align-items: center; gap: .65rem; position: relative; }
.auth-brand .brand-word { color: #fff; }
.receipt-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 340px; }
.receipt { width: min(330px, 80%); background: #FFFEF9; color: #2C3440; padding: 1.2rem 1.2rem 1.4rem; border-radius: 3px 3px 0 0; position: relative; transform: rotate(-3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); font-family: var(--mono); font-size: .76rem; }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 7px, #FFFEF9 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 7px, #FFFEF9 0) 0 0 / 14px 10px repeat-x; }
.receipt-head { text-align: center; border-bottom: 1px dashed #c9cfc9; padding-bottom: .65rem; margin-bottom: .6rem; }
.receipt-head strong { display: block; font-size: .82rem; letter-spacing: .04em; }
.receipt-head span { color: #7b848d; }
.receipt-lines { list-style: none; padding: 0; margin: 0; }
.receipt-lines li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .42rem 0; border-bottom: 1px dotted #e1e4df; }
.receipt-lines b { font-weight: 600; }
.receipt-lines .chip { grid-column: 1 / -1; justify-self: start; font-family: var(--font); opacity: 0; transform: translateY(-4px); animation: chipIn .5s ease forwards; animation-delay: calc(.9s + var(--d) * .55s); }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.receipt-total { display: flex; justify-content: space-between; padding-top: .7rem; font-weight: 800; font-size: .92rem; }
.meter-card { position: absolute; right: max(4%, calc(50% - 300px)); bottom: 6%; width: 250px; background: #fff; color: #1B2430; border-radius: 16px; padding: .9rem 1rem; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); font-family: var(--font); transform: rotate(2deg); }
.meter-card .meter { margin: .5rem 0 .4rem; background: #eef2f0; border-color: #e1e7e4; }
.meter-card .meter > i { background: #E2961E; transform-origin: left; transform: scaleX(0); animation: fillM 1.4s ease 3.2s forwards; }
@keyframes fillM { to { transform: scaleX(1); } }
#lgRuc::placeholder, #rgRuc::placeholder, #rcRuc::placeholder { text-transform: none; }
.meter-row { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; }
.meter-card small { color: #667381; font-size: .78rem; }
.auth-brand-copy { position: relative; max-width: 30rem; }
.auth-brand-copy h1 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: #fff; }
.auth-brand-copy p { color: #B9DCD4; font-size: 1.02rem; line-height: 1.55; margin: .8rem 0 0; }
@media (prefers-reduced-motion: reduce) { .receipt-lines .chip { animation: none; opacity: 1; transform: none; } .meter-card .meter > i { animation: none; transform: none; } }

/* Panel de formularios */
.auth-panel { display: flex; flex-direction: column; padding: 1.5rem clamp(1.25rem, 5vw, 4.5rem); background: var(--surface); }
.auth-panel-top { display: flex; justify-content: flex-end; align-items: center; }
.auth-mobile-brand { display: none; align-items: center; gap: .55rem; margin-right: auto; }
.auth-forms { flex: 1; display: flex; align-items: center; }
.auth-pane { display: none; width: 100%; max-width: 440px; margin: 0 auto; padding: 1.5rem 0; }
.auth-pane.active { display: block; animation: paneIn .3s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }
.auth-pane h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .35rem; }
.link-strong { font-weight: 600; font-size: .9rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .82rem; margin: 1.4rem 0 1rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-row { display: flex; gap: .6rem; }
.btn-social { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .65rem; border-radius: var(--r-md); }
.btn-social:hover { background: var(--surface-2); border-color: var(--muted); }
.auth-switch { text-align: center; margin: 1.6rem 0 0; color: var(--muted); }
.back-link { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .9rem; margin-bottom: 1.1rem; color: var(--muted); }
.auth-foot { text-align: center; color: var(--muted); font-size: .8rem; margin: 0; }

.stepper { display: flex; list-style: none; padding: 0; margin: 1rem 0 1.5rem; gap: .5rem; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; font-weight: 600; padding-bottom: .55rem; border-bottom: 3px solid var(--line); }
.stepper b { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: .78rem; border: 1px solid var(--line); }
.stepper li.active { color: var(--ink); border-color: var(--primary); }
.stepper li.active b { background: var(--primary); color: #fff; border-color: var(--primary); }
.stepper li.done { border-color: var(--primary); }
.stepper li.done b { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.step { display: none; } .step.active { display: block; }
.summary-box { border: 1px solid var(--line); border-radius: var(--r-md); }
.summary-box > div { padding: .7rem .9rem; border-top: 1px solid var(--line); }
.summary-box > div:first-child { border-top: 0; }
.summary-box small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.summary-box span { display: block; color: var(--muted); font-size: .85rem; }
.demo-toggle { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem; border-radius: var(--r-md); background: var(--primary-soft); cursor: pointer; }
.demo-toggle .form-check-input { margin-top: .2rem; flex-shrink: 0; width: 1.2em; height: 1.2em; }
.demo-toggle small { display: block; color: var(--muted); margin-top: .15rem; }

@media (max-width: 991.98px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-panel { padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1.25rem; min-height: 100dvh; }
  .auth-forms { align-items: flex-start; }
  .auth-pane h2 { font-size: 1.55rem; }
}

/* Google */
.g-wrap { min-height: 50px; }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.g-btn:empty { display: none; }
.g-btn:not(:empty) + .g-fallback { display: none; }
.g-fallback { padding: .75rem; font-size: 1rem; }
.g-quick { text-align: left; }
.g-quick .g-user { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 14px; background: var(--surface-2); margin-bottom: 1rem; }
.g-quick .g-user img, .g-quick .g-user .ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.g-quick .g-user b { display: block; color: var(--ink); } .g-quick .g-user small { color: var(--muted); }
.g-quick label { font-weight: 600; font-size: .88rem; margin: .6rem 0 .3rem; display: block; color: var(--ink); }
