/*===========================================
  POS LOGIN — PAGE-SPECIFIC / AUTH SHELL
===========================================*/

/* Stretch the login button & control actions row layout */
.pos-login-form .form-actions {
  margin-top: 1rem;
  display: flex;
}

.pos-login-form .btn-primary {
  width: 100%;
}

/* ----------------------------------------
   Header / Branding (Auth Shell)
----------------------------------------- */

.pos-header {
  background: linear-gradient(to right, #020617, #0b1220 40%, #020617 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 40;
}

.pos-header-inner {
  width: 100%;
  margin: 0;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
}

.pos-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Center logo on mobile for auth pages */
@media (max-width: 768px) {
  .pos-header-inner {
    justify-content: center;
  }
}

/* ----------------------------------------
   Main Layout & Panel (Auth Shell)
----------------------------------------- */

.pos-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

.pos-layout {
  width: 100%;
  max-width: 450px; /* tighter max-width for a nice centered card */
  margin: 0 auto;
  display: flex; /* changed from grid */
  flex-direction: column;
  align-items: center; /* center horizontally */
  justify-content: center;
  gap: 1.5rem;
}

.pos-panel {
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.16),
      transparent 55%
    ),
    var(--cct-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.6rem 1.6rem;
  position: relative;
  overflow: hidden;
}

.pos-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top right,
    rgba(56, 189, 248, 0.14),
    transparent 55%
  );
  opacity: 0.85;
  mix-blend-mode: screen;
}

.pos-panel > * {
  position: relative;
  z-index: 1;
}

/* Mobile padding tweak for login panel */
@media (max-width: 768px) {
  .pos-main {
    padding-top: 1.2rem;
  }

  .pos-panel {
    padding: 1.35rem 1.25rem 1.3rem;
  }
}

/* ----------------------------------------
   Typography (Auth Panel)
----------------------------------------- */

.pos-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cct-text-soft);
}

.pos-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----------------------------------------
   Alerts (used by login error)
----------------------------------------- */

.pos-alert {
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
  border: 1px solid transparent;
}

.pos-alert-error {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.pos-alert-success {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
}

/* ----------------------------------------
   Footer (Auth Shell)
----------------------------------------- */

.pos-footer {
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 0.75rem 0;
  font-size: 0.75rem;
  color: var(--cct-text-soft);
}

.pos-footer-inner {
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .pos-footer-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}
