/* Customer Authentication - Industry Standard Layout */
:root {
  --home-primary: #2c3e50;
  --home-secondary: #34495e;
  --home-accent: #ff6a00;
  --home-accent-hover: #e55f00;
  --home-bg-start: #f5f7fa;
  --home-bg-end: #c3cfe2;
}

.customer-auth-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, var(--home-bg-start) 0%, var(--home-bg-end) 100%);
  display: block;
  overflow-x: hidden;
}

.customer-auth-locale-bar {
  width: min(1160px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.88rem;
}

.customer-auth-locale-label {
  font-weight: 600;
}

.customer-auth-locale-link {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  color: #334155;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
}

.customer-auth-locale-link:hover {
  text-decoration: none;
  border-color: #94a3b8;
  color: #0f172a;
}

.customer-auth-locale-link.active {
  border-color: var(--home-accent);
  color: var(--home-accent);
  background: #fff;
}

.customer-auth-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.25rem auto;
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
}

.customer-auth-shell * {
  box-sizing: border-box;
}

.customer-auth-showcase {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 106, 0, 0.24), transparent 40%),
    linear-gradient(165deg, var(--home-primary) 0%, var(--home-secondary) 100%);
  color: #fff;
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-auth-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}

.customer-auth-brand,
.customer-auth-brand:visited {
  color: inherit;
  text-decoration: none;
}

.customer-auth-brand:hover {
  color: inherit;
  text-decoration: none;
  opacity: 0.96;
}

.customer-auth-brand-logo {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 106, 0, 0.48);
  border-radius: 0.9rem;
  padding: 0.45rem;
}

.customer-auth-brand-name {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.customer-auth-showcase-title {
  font-size: clamp(1.45rem, 1.5vw + 1rem, 2rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.customer-auth-showcase-copy {
  margin: 0 0 1.2rem;
  font-size: 0.98rem;
  opacity: 0.94;
}

.customer-auth-showcase-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-auth-showcase-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.customer-auth-showcase-list i {
  opacity: 0.95;
}

.customer-auth-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.customer-auth-metric {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.75rem;
  padding: 0.7rem;
  text-align: center;
}

.customer-auth-metric-value {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.customer-auth-metric-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.1rem;
}

.customer-auth-panel {
  padding: 2rem 2.15rem;
  background: #fff;
}

.customer-auth-panel-wide {
  padding: 1.55rem 1.7rem;
}

.customer-auth-card {
  max-width: 760px;
  margin: 0 auto;
}

.customer-auth-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--home-primary);
}

.customer-auth-subtitle {
  margin: 0.45rem 0 1.2rem;
  color: #526172;
  font-size: 0.95rem;
}

.customer-auth-form .form-group {
  margin-bottom: 1rem;
}

.customer-auth-label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.customer-auth-input {
  border-radius: 0.6rem;
  border: 1px solid #cbd5e1;
  min-height: 44px;
}

.customer-auth-input:focus {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.2);
}

.customer-auth-password-toggle {
  border-radius: 0 0.6rem 0.6rem 0;
  min-width: 46px;
}

.customer-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.customer-auth-grid-span-2 {
  grid-column: 1 / -1;
}

.customer-auth-actions {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.customer-auth-submit {
  min-width: 170px;
  min-height: 44px;
  border-radius: 0.6rem;
  font-weight: 600;
  border-color: var(--home-accent);
  background-color: var(--home-accent);
}

.customer-auth-submit:hover,
.customer-auth-submit:focus {
  border-color: var(--home-accent-hover);
  background-color: var(--home-accent-hover);
}

.customer-auth-login-options {
  gap: 0.75rem;
}

.customer-auth-inline-link,
.customer-auth-footer-link a,
.customer-auth-actions a:not(.btn) {
  color: var(--home-accent);
  text-decoration: none;
}

.customer-auth-inline-link:hover,
.customer-auth-footer-link a:hover,
.customer-auth-actions a:not(.btn):hover {
  color: var(--home-accent-hover);
  text-decoration: underline;
}

.customer-auth-success-actions .btn {
  flex: 1;
  height: 48px;
  min-height: 48px;
  border-radius: 0.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 0;
}

.customer-auth-success-actions .btn + .btn {
  margin-top: 0;
}

.customer-auth-success-actions .customer-auth-submit,
.customer-auth-success-actions .customer-auth-submit:hover,
.customer-auth-success-actions .customer-auth-submit:focus {
  color: #fff;
  text-decoration: none;
}

.customer-auth-outline-btn {
  border: 1px solid var(--home-accent);
  background: #fff;
  color: var(--home-accent);
}

.customer-auth-outline-btn:hover,
.customer-auth-outline-btn:focus {
  border-color: var(--home-accent-hover);
  background: var(--home-accent-hover);
  color: #fff;
  text-decoration: none;
}

.customer-auth-footer-link {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #475569;
}

.customer-auth-alert {
  border-radius: 0.65rem;
  border: 0;
  margin-bottom: 1rem;
}

.customer-auth-error-title {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .customer-auth-locale-bar {
    width: min(1160px, calc(100% - 2rem));
    margin: 0.75rem auto 0;
  }

  .customer-auth-shell {
    grid-template-columns: 1fr;
    margin-top: 0.75rem;
  }

  .customer-auth-showcase {
    padding: 1.5rem;
  }

  .customer-auth-panel,
  .customer-auth-panel-wide {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .customer-auth-page {
    padding: 0;
    background: var(--home-bg-start);
  }

  .customer-auth-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .customer-auth-locale-bar {
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem 0.4rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
  }

  .customer-auth-grid {
    grid-template-columns: 1fr;
  }

  .customer-auth-grid-span-2 {
    grid-column: auto;
  }

  .customer-auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-auth-login-options {
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-bottom: 1rem !important;
  }

  .customer-auth-login-options .customer-auth-inline-link {
    margin-left: 0;
  }

  .customer-auth-submit {
    width: 100%;
  }

  .customer-auth-panel,
  .customer-auth-panel-wide {
    padding: 1rem;
  }

  .customer-auth-showcase {
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .customer-auth-showcase-list,
  .customer-auth-metric-grid {
    display: none;
  }

  .customer-auth-title {
    font-size: 1.3rem;
  }

  .customer-auth-showcase-title {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
  }

  .customer-auth-showcase-copy {
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .customer-auth-input {
    min-height: 46px;
  }
}

@media (max-width: 420px) {
  .customer-auth-brand {
    margin-bottom: 0.8rem;
  }

  .customer-auth-brand-logo {
    width: 44px;
    height: 44px;
    padding: 0.35rem;
  }

  .customer-auth-brand-name {
    font-size: 0.92rem;
  }
}

/* POS Login (users/sessions) */
.pos-login-page {
  min-height: 100vh;
  background: #e6e7ea;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-login-card {
  width: min(1280px, 100%);
  min-height: 760px;
  background: #dfe2e6;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  box-shadow: 0 22px 40px rgba(44, 62, 80, 0.12);
}

.pos-login-form-panel {
  background: #fff;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
}

.pos-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--home-primary);
  text-decoration: none;
  margin-bottom: 1.6rem;
}

.pos-login-brand:hover,
.pos-login-brand:visited {
  color: var(--home-primary);
  text-decoration: none;
}

.pos-login-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.pos-login-brand-text {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
}

.pos-login-title {
  margin: 0 0 2rem;
  font-size: 2rem;
  color: #151515;
  font-weight: 700;
}

.pos-login-subtitle {
  margin: -1.15rem 0 1.4rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.pos-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid #ffd8bf;
  background: #fff5ec;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.34rem 0.72rem;
  margin-bottom: 0.9rem;
}

.pos-login-highlights {
  list-style: none;
  margin: -0.5rem 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pos-login-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #4b5563;
}

.pos-login-highlights i {
  margin-top: 0.16rem;
  color: var(--home-accent);
  font-size: 0.84rem;
}

.pos-login-form .form-group {
  margin-bottom: 1rem;
}

.pos-login-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
}

.pos-login-input {
  height: 48px;
  border: 1px solid #dde0e4;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
  background: #f3f4f6;
}

.pos-login-input:focus {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.17);
  background: #fff;
}

.pos-login-input-icon {
  width: 48px;
  min-width: 48px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--home-accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  display: inline-flex;
}

.pos-login-input-icon:hover,
.pos-login-input-icon:focus {
  background: var(--home-accent-hover);
  color: #fff;
}

.pos-login-options {
  margin: 0.25rem 0 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pos-login-forgot-link {
  color: #3e4b99;
  text-decoration: underline;
  font-size: 0.95rem;
}

.pos-login-forgot-link:hover {
  color: #2f3b82;
}

.pos-login-submit {
  height: 50px;
  border-radius: 8px;
  border: 0;
  background: var(--home-accent);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 8px 16px rgba(255, 106, 0, 0.25);
}

.pos-login-submit:hover,
.pos-login-submit:focus {
  background: var(--home-accent-hover);
}

.pos-login-separator {
  margin: 1.6rem 0 1rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-weight: 600;
}

.pos-login-separator::before,
.pos-login-separator::after {
  content: "";
  height: 1px;
  background: #d3d6db;
  flex: 1;
}

.pos-login-signup {
  border: 1px solid var(--home-accent);
  color: var(--home-accent);
  background: #fff;
  height: 48px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.pos-login-signup:hover,
.pos-login-signup:focus {
  color: #fff;
  background: var(--home-accent);
}

.pos-login-admin-note {
  margin: 1.25rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
}

.pos-login-note {
  margin: 0.45rem 0 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.pos-login-support-note {
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.45;
}

.pos-login-support-note i {
  margin-right: 0.4rem;
  color: var(--home-accent);
}

.pos-login-footer-link {
  margin-top: 1.1rem;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
}

.pos-login-footer-link a {
  color: var(--home-accent);
  font-weight: 600;
}

.pos-login-footer-link a:hover {
  color: var(--home-accent-hover);
}

.pos-login-visual-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
}

.pos-login-illustration {
  width: min(620px, 95%);
  max-height: 88%;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .pos-login-page {
    padding: 1rem;
  }

  .pos-login-card {
    min-height: 680px;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  }

  .pos-login-form-panel {
    padding: 2rem 1.35rem;
  }

  .pos-login-title {
    font-size: 1.7rem;
    margin-bottom: 1.35rem;
  }

  .pos-login-subtitle {
    margin-top: -0.7rem;
  }

  .pos-login-highlights {
    gap: 0.38rem;
  }
}

@media (max-width: 900px) {
  .pos-login-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pos-login-visual-panel {
    order: -1;
    padding: 1.2rem;
    border-bottom: 1px solid #d0d3d8;
  }

  .pos-login-illustration {
    width: min(420px, 100%);
    max-height: 230px;
  }
}

@media (max-width: 560px) {
  .pos-login-page {
    padding: 0;
  }

  .pos-login-card {
    border-radius: 0;
    min-height: 100vh;
  }

  .pos-login-brand-text {
    font-size: 1.45rem;
  }

  .pos-login-title {
    font-size: 1.45rem;
  }

  .pos-login-subtitle {
    margin-top: -0.55rem;
    margin-bottom: 1.1rem;
  }

  .pos-login-kicker {
    font-size: 0.71rem;
    padding: 0.3rem 0.62rem;
    margin-bottom: 0.75rem;
  }

  .pos-login-highlights {
    margin-top: -0.35rem;
    margin-bottom: 1rem;
  }

  .pos-login-highlights li {
    font-size: 0.86rem;
  }

  .pos-login-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .pos-login-form-panel {
    padding: 1.1rem 1rem 1.3rem;
  }
}
