/* ======================================================
   IMPERIAL CHAMBERS AUTH PAGE
   Password + PIN Login Upgrade
====================================================== */

.auth-page {
  min-height: 100vh;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(198, 147, 32, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 34%, #f5f5f5 34%, #fafafa 100%);
}

.auth-shell {
  width: min(1200px, 100%);
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 520px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/* ======================================================
   LEFT PANEL
====================================================== */

.auth-brand-panel {
  background: linear-gradient(180deg, #0c0c0c 0%, #171717 100%);

  color: #fff;

  padding: 3rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-logo {
  width: 78px;
  height: 78px;
  border-radius: 22px;

  display: grid;
  place-items: center;

  font-size: 1.6rem;
  font-weight: 900;

  background: linear-gradient(
    135deg,
    var(--color-gold-400),
    var(--color-gold-700)
  );

  box-shadow: 0 18px 40px rgba(198, 147, 32, 0.25);
}

.auth-brand-top h1 {
  margin-top: 1.5rem;
  font-size: 2.1rem;
  font-weight: 900;
}

.auth-brand-top p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.auth-brand-features {
  display: grid;
  gap: 1rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;

  padding: 1rem 1.1rem;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-feature i {
  color: var(--color-gold-300);
}

.auth-feature span {
  font-weight: 700;
}

/* ======================================================
   RIGHT PANEL
====================================================== */

.auth-form-panel {
  background: #fafafa;
  padding: 2rem;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 430px);

  background: #fff;

  border-radius: 28px;

  padding: 2rem;

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow-md);
}

.auth-card-header h2 {
  font-size: 2rem;
  font-weight: 900;
}

.auth-card-header p {
  margin-top: 0.45rem;
  color: var(--text-secondary);
}

/* ======================================================
   ALERT
====================================================== */

.auth-alert {
  margin-top: 1rem;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  padding: 1rem;

  border-radius: 14px;
}

.auth-alert.error {
  background: #fdecec;
  color: #b42318;
}

/* ======================================================
   TOGGLE
====================================================== */

.auth-toggle {
  margin-top: 1.5rem;

  background: #f2f2f2;

  border-radius: 16px;

  padding: 0.35rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.auth-toggle-btn {
  height: 52px;

  border: 0;

  border-radius: 12px;

  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  font-weight: 800;

  cursor: pointer;

  transition: 0.25s ease;
}

.auth-toggle-btn.active {
  background: #fff;
  color: var(--color-gold-700);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ======================================================
   TABS
====================================================== */

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

/* ======================================================
   FORMS
====================================================== */

.auth-form,
.pin-form {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-input-wrap {
  height: 56px;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  padding: 0 1rem;

  border-radius: 16px;

  border: 1px solid var(--border-light);

  background: #fff;

  transition: 0.25s ease;
}

.auth-input-wrap i {
  color: var(--text-secondary);
}

.auth-input-wrap input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
}

.auth-input-wrap:focus-within {
  border-color: var(--color-gold-400);

  box-shadow: 0 0 0 4px rgba(198, 147, 32, 0.12);
}

/* ======================================================
   BUTTONS
====================================================== */

.auth-btn {
  height: 56px;

  border: 0;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;

  font-weight: 800;

  cursor: pointer;

  transition: 0.25s ease;
}

.auth-btn.primary {
  background: linear-gradient(
    135deg,
    var(--color-gold-500),
    var(--color-gold-700)
  );

  color: #fff;
}

.auth-btn.secondary {
  background: var(--color-black);
  color: #fff;
}

.auth-btn:hover {
  transform: translateY(-1px);
}

/* ======================================================
   PIN DISPLAY
====================================================== */

.pin-display {
  display: grid;
  place-items: center;
  gap: 0.85rem;

  margin-bottom: 0.5rem;
}

.pin-dots {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pin-dot {
  width: 16px;
  height: 16px;

  border-radius: 999px;

  background: #e2e2e2;

  transition: 0.2s ease;
}

.pin-dot.filled {
  background: var(--color-gold-500);

  transform: scale(1.08);
}

/* ======================================================
   PIN PAD
====================================================== */

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.pin-key {
  height: 72px;

  border: 0;

  border-radius: 18px;

  background: #f7f7f7;

  font-size: 1.4rem;
  font-weight: 900;

  cursor: pointer;

  transition: 0.2s ease;

  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.pin-key:hover {
  transform: translateY(-2px);

  background: #fff;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.pin-key.action {
  background: #e21e1e;
  color: #fff;
}

/* ======================================================
   FOOTER
====================================================== */

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1024px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-brand-panel {
    padding: 2rem;
  }
}

/* ======================================================
   MOBILE POS TERMINALS
====================================================== */

@media (max-width: 640px) {
  .auth-page {
    padding: 0.75rem;
  }

  .auth-card,
  .auth-brand-panel,
  .auth-form-panel {
    padding: 1.25rem;
  }

  .auth-card {
    border-radius: 22px;
  }

  .auth-brand-top h1 {
    font-size: 1.7rem;
  }

  .auth-toggle-btn {
    font-size: 0.85rem;
  }

  .pin-key {
    height: 64px;
    font-size: 1.25rem;
  }
}
