/* ============================================================
   PDV Loja — Auth Pages
   ============================================================ */

.auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #fff;
}

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

/* ── Left brand panel ───────────────────────────────────────── */
.auth-panel {
  flex: 1;
  background: linear-gradient(150deg, #1B3A6B 0%, #1565C0 60%, #1E88E5 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 52px;
  position: relative;
  overflow: hidden;
}

.auth-panel__inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auth-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 52px;
}
.auth-logo .logo-pdv  { font-size: 36px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.auth-logo .logo-loja { font-size: 36px; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: -1px; }

.auth-panel__headline {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.auth-panel__sub {
  font-size: 15px;
  color: rgba(255,255,255,.62);
  margin-bottom: 48px;
  line-height: 1.7;
}

.auth-panel__features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-panel__feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-panel__feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: rgba(255,255,255,.92);
  flex-shrink: 0;
}

.auth-panel__feat-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.auth-panel__feat-desc {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}

.auth-panel__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-panel__deco--1 {
  width: 380px; height: 380px;
  background: rgba(255,255,255,.05);
  bottom: -100px; right: -80px;
}
.auth-panel__deco--2 {
  width: 200px; height: 200px;
  background: rgba(255,255,255,.04);
  top: 40px; right: 30px;
}
.auth-panel__deco--3 {
  width: 100px; height: 100px;
  background: rgba(255,255,255,.06);
  top: 50%; left: -30px;
  transform: translateY(-50%);
}

/* ── Right form side ────────────────────────────────────────── */
.auth-side {
  width: 500px;
  min-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 36px;
  background: #fff;
  overflow-y: auto;
}

.auth-logo--mobile { display: none; }

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--pdv-dark);
  margin: 0 0 6px 0;
  letter-spacing: -.3px;
}

.auth-card__subtitle {
  font-size: 14px;
  color: var(--pdv-gray-500);
  margin: 0 0 28px 0;
  line-height: 1.55;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form .form-group { margin-bottom: 16px; }

/* Better input styling for auth */
.auth-form .form-control {
  height: 46px;
  font-size: 15px;
  border-radius: 10px;
  border-color: var(--pdv-gray-300);
  transition: border-color .18s, box-shadow .18s;
}
.auth-form .form-control:focus {
  border-color: var(--pdv-blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
  outline: none;
}

.auth-form .input-icon-wrap { position: relative; }
.auth-form .input-icon-wrap .form-control { padding-left: 42px; }
.auth-form .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  width: 16px;
  height: 16px;
  color: var(--pdv-gray-500);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form .input-icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pdv-gray-500);
  padding: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.auth-form .input-icon-btn:hover { color: var(--pdv-dark); }

.auth-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pdv-gray-700);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label__link {
  font-size: 12px;
  font-weight: 500;
  color: var(--pdv-blue);
  text-decoration: none;
}
.form-label__link:hover { text-decoration: underline; }

/* Submit button */
.auth-form .btn-primary {
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  margin-top: 4px;
  letter-spacing: .01em;
  transition: background .18s, transform .12s, box-shadow .18s;
}
.auth-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,.3);
}
.auth-form .btn-primary:active:not(:disabled) { transform: translateY(0); }

/* Remember me */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pdv-gray-700);
  cursor: pointer;
  user-select: none;
  margin-bottom: 16px;
}
.auth-remember input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--pdv-blue);
  cursor: pointer;
}

.auth-card__divider {
  text-align: center;
  font-size: 13px;
  color: var(--pdv-gray-500);
  position: relative;
  margin: 20px 0;
}
.auth-card__divider::before,
.auth-card__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--pdv-gray-200);
}
.auth-card__divider::before { left: 0; }
.auth-card__divider::after  { right: 0; }

.auth-card__footer {
  text-align: center;
  font-size: 14px;
  color: var(--pdv-gray-500);
  margin-top: 20px;
}

.auth-card__trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pdv-green);
  background: var(--pdv-green-bg);
  border-radius: 10px;
  padding: 11px 16px;
  margin-top: 14px;
}

/* ── Login v2 ─────────────────────────────────────────────── */
.auth-v2 .auth-layout {
  flex-direction: row;
}

.auth-v2 .auth-panel {
  flex: 1 1 47%;
  justify-content: center;
  padding: 56px;
  background: #eef6ff;
}

.auth-v2 .auth-panel { position: relative; }
.auth-back {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  color: #33507a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.auth-back i { font-size: 15px; line-height: 1; }
.auth-back:hover { background: rgba(15, 108, 229, .1); color: #0f6ce5; }

.auth-v2 .auth-panel__inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.auth-v2 .auth-panel__deco {
  display: none;
}

.auth-v2 .auth-side {
  width: 53%;
  min-width: 560px;
  padding: 56px 72px;
  align-items: center;
  background: #fff;
}

.auth-logo--login {
  width: 100%;
  max-width: 420px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 42px;
  color: #0f6ce5;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.auth-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #0f6ce5;
  font-size: 39px;
  line-height: 1;
}

.auth-v2 .auth-card {
  max-width: 420px;
}

.auth-v2 .auth-card__title {
  margin-bottom: 28px;
  color: #181b20;
  font-size: 28px;
  letter-spacing: -.55px;
}

.auth-v2 .auth-form .form-group {
  margin-bottom: 20px;
}

.auth-v2 .auth-form .form-label {
  margin-bottom: 8px;
  color: #1d232d;
  font-size: 14px;
}

.auth-v2 .auth-form .form-control {
  height: 48px;
  padding-right: 14px;
  padding-left: 14px;
  color: #20242b;
  background: #fff;
  border: 1px solid #9ba6b5;
  border-radius: 4px;
  font-size: 15px;
}

.auth-v2 .auth-form .form-control::placeholder {
  color: #9199a6;
}

.auth-v2 .auth-form .form-control:focus {
  border-color: #0f6ce5;
  box-shadow: 0 0 0 3px rgba(15, 108, 229, .11);
}

.auth-v2 .auth-form .input-icon-wrap .form-control {
  padding-right: 44px;
}

.auth-v2 .auth-form .input-icon-wrap:has(.input-icon) .form-control {
  padding-left: 42px;
}

.auth-v2 .auth-form .input-icon-btn {
  right: 9px;
  width: 32px;
  height: 32px;
  justify-content: center;
  color: #536071;
  border-radius: 4px;
}

.auth-v2 .auth-form .input-icon-btn:focus-visible {
  outline: 2px solid #0f6ce5;
  outline-offset: 1px;
}

.auth-login-v2__forgot {
  display: inline-block;
  margin-top: 10px;
  color: #0f6ce5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.auth-login-v2__forgot:hover {
  text-decoration: underline;
}

.auth-v2 .auth-form .btn-primary {
  height: 50px;
  margin-top: 12px;
  background: #0f6ce5;
  border-color: #0f6ce5;
  border-radius: 4px;
  box-shadow: none;
  font-size: 16px;
  transition: background-color 160ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.auth-v2 .auth-form .btn-primary:hover:not(:disabled) {
  background: #0b5dca;
  border-color: #0b5dca;
  box-shadow: none;
  transform: none;
}

.auth-v2 .auth-form .btn-primary:active:not(:disabled) {
  transform: scale(.98);
}

.auth-v2 .auth-card__footer {
  margin-top: 24px;
  font-size: 14px;
}

.auth-v2 .auth-card__footer a {
  color: #0f6ce5;
  font-weight: 500;
  text-decoration: none;
}

.auth-v2 .auth-card__footer a:hover {
  text-decoration: underline;
}

.auth-v2:not(.auth-login-v2) .auth-card__title {
  margin-bottom: 6px;
}

.auth-v2:not(.auth-login-v2) .auth-card__subtitle {
  margin-bottom: 24px;
  color: #5f6978;
  font-size: 15px;
}

.auth-register-v2 .auth-side {
  justify-content: flex-start;
  padding-top: 34px;
  padding-bottom: 34px;
}

.auth-register-v2 .auth-logo--login {
  margin-bottom: 22px;
}

.auth-register-v2 .auth-card__title {
  font-size: 25px;
}

.auth-register-v2 .auth-form .form-group {
  margin-bottom: 14px;
}

.auth-v2 .form-check-label {
  color: #4c5665;
  font-size: 13px;
  line-height: 1.5;
}

.auth-v2 .form-check-label a {
  color: #0f6ce5;
}

.auth-sync {
  color: #111827;
  text-align: center;
}

.auth-sync h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.45px;
  line-height: 1.25;
}

.auth-sync > p {
  margin: 12px 0 52px;
  color: #394557;
  font-size: 15px;
  line-height: 1.55;
}

.auth-sync__flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr;
  align-items: center;
  gap: 5px;
  padding-bottom: 62px;
}

.auth-sync__item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 13px;
}

.auth-sync__item > strong {
  font-size: 14px;
  font-weight: 600;
}

.auth-sync__icon {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #0d2748;
  font-size: 70px;
  line-height: 1;
}

.auth-sync__icon--cash {
  color: #0f6ce5;
  font-size: 67px;
}

.auth-sync__icon--cash small {
  position: absolute;
  top: 16px;
  left: 50%;
  color: #0f6ce5;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  transform: translateX(-50%);
}

.auth-sync__icon--chart {
  font-size: 73px;
}

.auth-sync__arrow {
  position: relative;
  z-index: 1;
  color: #0f6ce5;
  font-size: 24px;
}

.auth-sync__loop {
  position: absolute;
  right: 50px;
  bottom: 21px;
  left: 50px;
  height: 54px;
  border-right: 2px dashed #0f6ce5;
  border-bottom: 2px dashed #0f6ce5;
  border-left: 2px dashed #0f6ce5;
  border-radius: 0 0 16px 16px;
  opacity: .9;
}

.auth-sync__loop::before,
.auth-sync__loop::after {
  position: absolute;
  top: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #0f6ce5;
  border-left: 2px solid #0f6ce5;
  content: "";
  transform: rotate(45deg);
}

.auth-sync__loop::before {
  left: -5px;
}

.auth-sync__loop::after {
  right: -5px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-layout { overflow-x: hidden; }
  .auth-panel { display: none; }
  .auth-side {
    width: 100%;
    min-width: 0;
    padding: 40px 28px;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    overflow-y: visible;
    overflow-x: hidden;
  }
  .auth-v2 .auth-side {
    width: 100%;
    min-width: 0;
    padding: 40px 28px;
  }
  .auth-logo--mobile {
    display: inline-flex;
    margin-bottom: 32px;
    align-self: flex-start;
  }
  .auth-logo--mobile .logo-pdv  { font-size: 30px; font-weight: 900; color: var(--pdv-blue-dark); }
  .auth-logo--mobile .logo-loja { font-size: 30px; font-weight: 700; color: var(--pdv-blue); }
  .auth-card {
    width: 100%;
    max-width: 100%;
  }
  .auth-logo--login {
    max-width: 100%;
    margin-bottom: 34px;
    font-size: 29px;
  }
  .auth-logo__mark {
    width: 38px;
    height: 38px;
    font-size: 35px;
  }
  .auth-v2 .auth-card {
    max-width: 100%;
  }
  .auth-card__title { font-size: 24px; }
  .auth-form .form-control { height: 50px; font-size: 16px; } /* 16px prevents iOS zoom */
  .auth-form .btn-primary  { height: 52px; font-size: 16px; }
}

@media (max-width: 480px) {
  .auth-side { padding: 28px 20px; }
  .auth-v2 .auth-side { padding: 28px 20px; }
  .auth-card__title { font-size: 22px; }
}
