/* ============================================================
   RapiShop — Estilos del módulo de Autenticación
   Complementa a app.css (portar a resources/css en Laravel)
   ============================================================ */

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .auth-shell.with-aside { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- Aside (brand panel) ---------- */
.auth-aside {
  position: relative;
  display: none;
  color: #f7f3f0;
  padding: 3rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(56,36,23,.94), rgba(42,27,17,.88)),
    url('../img/hero.png') center/cover no-repeat;
}
@media (min-width: 992px) {
  .auth-aside { display: flex; flex-direction: column; justify-content: space-between; }
}
.auth-aside .brand {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem;
  color: #fff; display: inline-flex; align-items: center; gap: .6rem;
}
.auth-aside .brand .brand-dot { background: rgba(255,255,255,.18); }
.auth-aside h2 { color: #fff; font-weight: 800; line-height: 1.15; }
.auth-point {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .7rem 0;
}
.auth-point i {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.14); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.auth-point p { margin: 0; opacity: .9; }
.auth-quote {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 1.1rem 1.25rem; backdrop-filter: blur(4px);
}

/* ---------- Form side ---------- */
.auth-main {
  display: flex; flex-direction: column;
  padding: 2rem 1.25rem;
  background: var(--canvas);
}
@media (min-width: 992px) { .auth-main { padding: 2.5rem 4rem; } }

.auth-card {
  width: 100%; max-width: 460px; margin: auto;
}
.auth-card.wide { max-width: 640px; }

.auth-logo-mobile {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--brand-700); display: inline-flex; align-items: center; gap: .55rem;
}

.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.input-icon { position: relative; }
.input-icon > i {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; z-index: 1;
}
.input-icon .form-control { padding-left: 2.6rem; }
.input-icon.has-toggle .form-control { padding-right: 2.75rem; }
.toggle-pass {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--muted);
  width: 2.25rem; height: 2.25rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; border-radius: 8px;
}
.toggle-pass i {
  position: static; transform: none; pointer-events: none;
  left: auto; top: auto; color: inherit; font-size: 1.05rem;
}
.toggle-pass:hover { color: var(--brand-700); background: var(--brand-50); }
.toggle-pass:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-50);
  color: var(--brand-700);
}

/* ---------- Role selector ---------- */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.role-opt { position: relative; }
.role-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role-opt label {
  display: block; cursor: pointer; height: 100%;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem;
  background: #fff; transition: all .15s ease;
}
.role-opt label i { font-size: 1.5rem; color: var(--brand-600); }
.role-opt label .t { font-weight: 700; margin-top: .35rem; }
.role-opt label .d { font-size: .8rem; color: var(--muted); }
.role-opt input:checked + label {
  border-color: var(--brand-600); background: var(--brand-50);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.role-opt input:focus-visible + label { box-shadow: 0 0 0 4px var(--brand-100); }

/* ---------- Divider with text ---------- */
.or-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Password strength ---------- */
.pw-meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pw-meter > span { display: block; height: 100%; width: 0; transition: width .25s ease, background .25s ease; }

/* ---------- Stepper (entrepreneur register) ---------- */
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper .step { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .85rem; }
.stepper .step .n {
  width: 28px; height: 28px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.stepper .step.active { color: var(--brand-700); }
.stepper .step.active .n { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.stepper .step.done .n { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }
.stepper .bar { flex: 1; height: 2px; background: var(--line); min-width: 20px; }

/* ---------- Dropzone (DPI upload) ---------- */
.dropzone {
  border: 2px dashed var(--brand-200); border-radius: 16px; background: var(--brand-50);
  padding: 1.6rem; text-align: center; cursor: pointer; transition: all .15s ease;
}
.dropzone:hover { border-color: var(--brand-500); background: #fff; }
.dropzone.filled { border-style: solid; border-color: var(--brand-500); background: #fff; }
[data-photo-upload] .dropzone { display: block; width: 100%; }
.dropzone i { font-size: 2rem; color: var(--brand-600); }
.dpi-preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; }

/* ---------- Misc ---------- */
.auth-foot { color: var(--muted); font-size: .85rem; }
.back-link { color: var(--brand-700); font-weight: 600; }
.back-link:hover { color: var(--brand-800); }
