/* ===== Standalone auth pages (login / register) — Shopee/Tokopedia style ===== */
* { box-sizing: border-box; }
.auth-body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #1f2b38;
  background: #eef3f8;
}
.auth-wrap {
  display: flex;
  min-height: 100vh;
}

/* ── Brand panel (left) ── */
.auth-panel {
  position: relative;
  flex: 1 1 46%;
  max-width: 620px;
  background: linear-gradient(150deg, #003149 0%, #024a6e 50%, #068fd0 130%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-panel-logo { display: inline-block; position: relative; z-index: 2; }
.auth-panel-logo img { height: 42px; width: auto; }
.auth-panel-body { position: relative; z-index: 2; margin: auto 0; max-width: 440px; }
.auth-panel-body h2 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 18px;
}
.auth-panel-body p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin: 0 0 28px;
}
.auth-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-features li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,.92); }
.auth-features i { color: #7fd3ff; font-size: 16px; }
/* decorative circles */
.auth-panel-deco::before,
.auth-panel-deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.auth-panel-deco::before { width: 340px; height: 340px; right: -120px; bottom: -120px; }
.auth-panel-deco::after { width: 200px; height: 200px; right: 80px; top: -70px; background: rgba(255,255,255,.05); }

/* ── Form side (right) ── */
.auth-main {
  position: relative;
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-back {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 13px;
  font-weight: 500;
  color: #5c6b7a;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .2s;
}
.auth-back:hover { color: var(--primary-color); }
.auth-card {
  width: 100%;
  max-width: 410px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,40,65,.10);
  padding: 38px 36px;
}
.auth-card-logo { display: none; text-align: center; margin-bottom: 18px; }
.auth-card-logo img { height: 40px; }

.auth-title { font-size: 23px; font-weight: 700; color: #11202e; margin: 0 0 4px; }
.auth-subtitle { font-size: 14px; color: #7e8a96; margin: 0 0 26px; }

/* alerts */
.auth-alert {
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.auth-alert.success { background: #e6f6ec; border: 1px solid #9bd9b1; color: #1d7a42; }
.auth-alert.error { background: #fdecea; border: 1px solid #f5c2c0; color: #c0392b; }
.auth-alert ul { margin: 0; padding-left: 16px; }

/* fields */
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3a4855;
  margin-bottom: 7px;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab4bf;
  font-size: 14px;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid #dce3ea;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  color: #1f2b38;
  background: #fafbfc;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6,143,208,.12);
}
.auth-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #99a3ae;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}
.auth-toggle:hover { color: var(--primary-color); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #5c6b7a; cursor: pointer; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--primary-color); }
.auth-link { font-size: 13px; color: var(--primary-color); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 9px;
  background: var(--primary-color);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.auth-submit:hover { background: #0577ad; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #aab4bf;
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6ebf0;
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #fff;
  color: #3c4753;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.auth-google:hover { background: #f6f8fa; border-color: #c5cfd9; }

.auth-foot { text-align: center; font-size: 14px; color: #5c6b7a; margin: 0; }
.auth-foot a { color: var(--primary-color); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .auth-panel { display: none; }
  .auth-main { flex: 1 1 100%; padding: 32px 18px; }
  .auth-card-logo { display: block; }
  .auth-back { color: #7e8a96; }
}
@media (max-width: 460px) {
  .auth-card { padding: 28px 22px; box-shadow: none; border-radius: 0; background: transparent; }
  .auth-body { background: #fff; }
}
