/* Customer Login - Tampilan modern, animasi, kostumisasi penuh */

:root {
  --border: #e5e7eb;
  --muted: #6b7280;
}

:root[data-theme="dark"] {
  --border: #334155;
  --muted: #94a3b8;
}

/* PWA/standalone: safe-area agar layout seperti desktop di mobile */
body.customer-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #111827;
  background: #ecfdf5;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

:root[data-theme="dark"] body.customer-login-page {
  color: #e5e7eb;
  background: #0c1917;
}

/* Background dekoratif */
.customer-login__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  contain: strict;
}

.customer-login__bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: customer-float 20s ease-in-out infinite;
}

.customer-login__bg-shape--1 {
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, #99f6e4 0%, #14b8a6 100%);
  top: -140px;
  left: -100px;
  animation-delay: 0s;
}

.customer-login__bg-shape--2 {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, #5eead4 0%, #0d9488 100%);
  bottom: 10%;
  right: -80px;
  animation-delay: -7s;
}

.customer-login__bg-shape--3 {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
  bottom: -50px;
  left: 25%;
  animation-delay: -14s;
}

:root[data-theme="dark"] .customer-login__bg-shape--1 {
  background: linear-gradient(135deg, #134e4a 0%, #0f766e 100%);
  opacity: 0.45;
}

:root[data-theme="dark"] .customer-login__bg-shape--2 {
  background: linear-gradient(135deg, #115e59 0%, #0d9488 100%);
  opacity: 0.35;
}

:root[data-theme="dark"] .customer-login__bg-shape--3 {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  opacity: 0.3;
}

@keyframes customer-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-15px, 12px) scale(1.03); }
  66% { transform: translate(12px, -8px) scale(0.97); }
}

.customer-login__bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.14) 1px, transparent 0);
  background-size: 26px 26px;
}

:root[data-theme="dark"] .customer-login__bg-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(45, 212, 191, 0.1) 1px, transparent 0);
}

.customer-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.customer-login__card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 36px 32px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  animation: customer-card-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
  position: relative;
  overflow: hidden;
}

.customer-login__card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
  border-radius: 24px 24px 0 0;
}

:root[data-theme="dark"] .customer-login__card {
  background: #1e293b;
  border-color: rgba(45, 212, 191, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .customer-login__card-accent {
  background: linear-gradient(90deg, #0f766e 0%, #2dd4bf 100%);
}

.customer-login__card--wide {
  max-width: 560px;
}

.customer-login__btn--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
}

@keyframes customer-card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-login__header {
  text-align: center;
  margin-bottom: 28px;
}

.customer-login__logo-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: customer-title-in 0.5s ease-out 0.15s forwards;
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.customer-login__logo-icon {
  font-size: 1.75rem;
  color: #0d9488;
}

:root[data-theme="dark"] .customer-login__logo-wrap {
  background: linear-gradient(135deg, #134e4a 0%, #0f766e 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .customer-login__logo-icon {
  color: #5eead4;
}

.customer-login__logo-wrap--brand {
  width: min(100%, 300px);
  height: 70px;
  border-radius: 12px;
  padding: 8px 12px;
  background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
  overflow: hidden;
}

:root[data-theme="dark"] .customer-login__logo-wrap--brand {
  background: linear-gradient(145deg, #0f172a 0%, #134e4a 100%);
  border-color: rgba(45, 212, 191, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.customer-login__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.customer-login__title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0d9488;
  animation: customer-title-in 0.5s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(-8px);
}

:root[data-theme="dark"] .customer-login__title {
  color: #2dd4bf;
}

@keyframes customer-title-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.customer-login__subtitle {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  animation: customer-fade-in 0.4s ease-out 0.35s forwards;
  opacity: 0;
}

:root[data-theme="dark"] .customer-login__subtitle {
  color: #94a3b8;
}

.customer-login__alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid;
  margin: 0 0 20px;
  font-size: 0.875rem;
  animation: customer-fade-in 0.35s ease-out 0.45s forwards;
}
.customer-login__alert.is-visible {
  display: flex;
  opacity: 1;
}
.customer-login__alert--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.customer-login__alert--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}
.customer-login__alert--success {
  border-color: #86efac;
  background: #ecfdf5;
  color: #15803d;
}
:root[data-theme="dark"] .customer-login__alert--error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.3);
}
:root[data-theme="dark"] .customer-login__alert--warning {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(120, 53, 15, 0.3);
}
:root[data-theme="dark"] .customer-login__alert--success {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(6, 78, 59, 0.3);
}

.customer-login__form-group {
  margin-bottom: 18px;
  animation: customer-fade-in 0.4s ease-out forwards;
  opacity: 0;
}
.customer-login__form-group:nth-child(2) {
  animation-delay: 0.5s;
}

.customer-login__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.customer-login__wajib {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  vertical-align: middle;
}

.customer-login__required-note {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}

:root[data-theme="dark"] .customer-login__wajib {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.4);
}

:root[data-theme="dark"] .customer-login__required-note {
  color: #94a3b8;
}

:root[data-theme="dark"] .customer-login__label {
  color: #cbd5e1;
}

.customer-login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.customer-login__input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  color: #6b7280;
  pointer-events: none;
  transition: color 0.2s;
}

:root[data-theme="dark"] .customer-login__input-icon {
  color: #94a3b8;
}

.customer-login__input-wrap:focus-within .customer-login__input-icon {
  color: #0d9488;
}

:root[data-theme="dark"] .customer-login__input-wrap:focus-within .customer-login__input-icon {
  color: #2dd4bf;
}

.customer-login__hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.customer-login__divider {
  margin: 18px 0;
  border: none;
  border-top: 1px solid var(--border);
}

.customer-login__photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-login__photo-btn {
  padding: 12px 10px;
  font-size: 0.85rem;
}

.customer-login__file-input {
  display: none !important;
}

.customer-login__photo-preview {
  margin-top: 12px;
}

.customer-login__photo-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.customer-login__input--plain {
  padding-left: 14px;
}

.customer-login__gps-btn {
  margin-top: 0;
  cursor: pointer;
}

.customer-login__gps-btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.customer-login__gps-btn.is-success {
  border-color: rgba(16, 185, 129, 0.5);
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
}

.customer-login__location-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #475569;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.customer-login__location-status > i {
  font-size: 1.05rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.customer-login__location-status-body {
  min-width: 0;
  flex: 1;
}

.customer-login__location-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.customer-login__location-summary {
  font-size: 0.78rem;
  line-height: 1.5;
  word-break: break-word;
}

.customer-login__location-summary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.customer-login__location-status--loading {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.28);
  color: #0369a1;
}

.customer-login__location-status--loading > i {
  animation: register-gps-spin 1s linear infinite;
}

@keyframes register-gps-spin {
  to { transform: rotate(360deg); }
}

.customer-login__location-status--success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
  color: #047857;
}

.customer-login__location-status--error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}

.customer-login__location-status[hidden] {
  display: none !important;
}

:root[data-theme="dark"] .customer-login__location-status {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

:root[data-theme="dark"] .customer-login__location-status--loading {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

:root[data-theme="dark"] .customer-login__location-status--success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

:root[data-theme="dark"] .customer-login__location-status--error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

:root[data-theme="dark"] .customer-login__gps-btn.is-success {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
}

:root[data-theme="dark"] .customer-login__hint {
  color: var(--muted);
}

.customer-login__input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.customer-login__input::placeholder {
  color: #9ca3af;
}
.customer-login__input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
:root[data-theme="dark"] .customer-login__input {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}
:root[data-theme="dark"] .customer-login__input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.customer-login__actions {
  margin-top: 20px;
  animation: customer-fade-in 0.4s ease-out forwards;
  opacity: 0;
}
.customer-login__card > .customer-login__actions:nth-of-type(1) {
  animation-delay: 0.6s;
}
.customer-login__card > .customer-login__actions:nth-of-type(2),
.customer-login__card > .customer-login__actions:nth-of-type(3) {
  animation-delay: 0.7s;
  margin-top: 12px;
}

.customer-login__btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  transition: transform 0.2s ease, box-shadow 0.2s, filter 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.customer-login__btn-icon {
  font-size: 1.15rem;
  opacity: 0.95;
}

.customer-login__btn-icon--outline {
  font-size: 1.1rem;
}

.customer-login__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
  filter: brightness(1.05);
}
.customer-login__btn:active:not(:disabled) {
  transform: translateY(0);
}
.customer-login__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.customer-login__btn.is-sending {
  opacity: 0.85;
  pointer-events: none;
}

.customer-login__success-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.register-success-open {
  overflow: hidden;
}

.customer-login__success-overlay[hidden] {
  display: none !important;
}

:root[data-theme="dark"] .customer-login__success-overlay {
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme="dark"] .customer-login__success-content {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(45, 212, 191, 0.18);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.customer-login__success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 24px;
  max-width: 340px;
  width: min(100%, 340px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.customer-login__success-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #047857;
  opacity: 0;
  transform: translateY(8px);
}

.customer-login__success-detail {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
}

.customer-login__success-detail[hidden] {
  display: none !important;
}

.customer-login__success-home-btn {
  margin-top: 4px;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  text-decoration: none;
}

.customer-login__success-overlay.is-animating .customer-login__success-title {
  animation: register-success-fade-in 0.45s 0.7s ease forwards;
}

.customer-login__success-overlay.is-animating .customer-login__success-detail:not([hidden]) {
  animation: register-success-fade-in 0.45s 0.82s ease forwards;
}

.customer-login__success-overlay.is-animating .customer-login__success-home-btn {
  animation: register-success-fade-in 0.45s 0.94s ease forwards;
}

@keyframes register-success-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root[data-theme="dark"] .customer-login__success-title {
  color: #6ee7b7;
}

:root[data-theme="dark"] .customer-login__success-detail {
  color: #cbd5e1;
}

.customer-login__success-check {
  width: 88px;
  height: 88px;
}

.customer-login__check-svg {
  width: 88px;
  height: 88px;
  display: block;
}

.customer-login__check-circle {
  stroke: #10b981;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  transform-origin: 50% 50%;
}

.customer-login__check-mark {
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.customer-login__success-overlay.is-animating .customer-login__check-circle {
  animation: register-check-circle 0.55s ease-in-out forwards;
}

.customer-login__success-overlay.is-animating .customer-login__check-mark {
  animation: register-check-mark 0.35s 0.45s ease forwards;
}

@keyframes register-check-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes register-check-mark {
  to {
    stroke-dashoffset: 0;
  }
}

.customer-login__btn--outline {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: #374151;
  box-shadow: none;
}
.customer-login__btn--outline:hover:not(:disabled) {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0d9488;
  box-shadow: none;
  filter: none;
}
:root[data-theme="dark"] .customer-login__btn--outline {
  border-color: #475569;
  color: #e2e8f0;
}
:root[data-theme="dark"] .customer-login__btn--outline:hover:not(:disabled) {
  background: #134e4a;
  border-color: #2dd4bf;
  color: #2dd4bf;
}

.customer-login__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  animation: customer-fade-in 0.4s ease-out 0.85s forwards;
  opacity: 0;
}

.customer-login__footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 14px;
}

.customer-login__footer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.8125rem;
}

.customer-login__footer-item i {
  color: #0d9488;
  font-size: 0.95rem;
}

.customer-login__footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 600;
}

.customer-login__footer-brand i {
  font-size: 0.9rem;
  color: #0d9488;
}

:root[data-theme="dark"] .customer-login__footer {
  border-top-color: #334155;
}

:root[data-theme="dark"] .customer-login__footer-item {
  color: #94a3b8;
}

:root[data-theme="dark"] .customer-login__footer-item i {
  color: #2dd4bf;
}

:root[data-theme="dark"] .customer-login__footer-brand {
  color: #cbd5e1;
}

:root[data-theme="dark"] .customer-login__footer-brand i {
  color: #2dd4bf;
}

@keyframes customer-fade-in {
  to { opacity: 1; }
}

.theme-toggle-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #374151;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}
.theme-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
:root[data-theme="dark"] .theme-toggle-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.theme-toggle-btn i {
  font-size: 1.2rem;
}

/* Modal */
.customer-login__modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.customer-login__modal.is-visible {
  display: flex;
}

.customer-login__modal-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
:root[data-theme="dark"] .customer-login__modal-content {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.customer-login__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.customer-login__modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}
:root[data-theme="dark"] .customer-login__modal-title {
  color: #f1f5f9;
}

.customer-login__modal-close {
  background: #f1f5f9;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.customer-login__modal-close:hover {
  background: #e2e8f0;
  color: #334151;
}
:root[data-theme="dark"] .customer-login__modal-close {
  background: #334155;
  color: #94a3b8;
}
:root[data-theme="dark"] .customer-login__modal-close:hover {
  background: #475569;
  color: #e2e8f0;
}

@media (max-width: 480px) {
  .customer-login__card,
  .customer-login__card--wide,
  .admin-login__card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .customer-login__card-accent,
  .admin-login__card-accent {
    border-radius: 18px 18px 0 0;
  }
  .customer-login__title,
  .admin-login__title {
    font-size: 1.3rem;
  }
  .customer-login__logo-wrap,
  .admin-login__logo-wrap {
    width: 56px;
    height: 56px;
  }
  .customer-login__logo-icon,
  .admin-login__logo-icon {
    font-size: 1.5rem;
  }
  .customer-login__footer-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== Register page: form panjang, card mengikuti konten ===== */
body.customer-login-page--register,
body.customer-login-page--register *,
body.customer-login-page--register *::before,
body.customer-login-page--register *::after {
  box-sizing: border-box;
}

body.customer-login-page--register {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.customer-login-page--register .customer-login {
  display: block;
  min-height: auto;
  width: 100%;
  max-width: 100%;
  padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(40px, env(safe-area-inset-bottom, 0px));
}

body.customer-login-page--register .customer-login__card {
  width: 100%;
}

body.customer-login-page--register .customer-login__photo-preview img {
  max-width: 100%;
}

body.customer-login-page--register .customer-login__card {
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.customer-login-page--register .customer-login__logo-wrap,
body.customer-login-page--register .customer-login__title,
body.customer-login-page--register .customer-login__subtitle,
body.customer-login-page--register .customer-login__alert,
body.customer-login-page--register .customer-login__form-group,
body.customer-login-page--register .customer-login__actions,
body.customer-login-page--register .customer-login__footer {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.customer-login-page--register .customer-login__input {
  padding: 12px 14px;
}

.customer-login__input-wrap--textarea {
  align-items: flex-start;
}

.customer-login__input-wrap--textarea .customer-login__input-icon {
  top: 14px;
  transform: none;
}

body.customer-login-page--register .customer-login__input-wrap .customer-login__input {
  padding: 12px 14px 12px 44px;
}

body.customer-login-page--register .customer-login__input-wrap--textarea .customer-login__input {
  padding: 12px 14px 12px 44px;
  resize: vertical;
  min-height: 88px;
}

body.customer-login-page--register .customer-login__input-wrap--select .customer-login__input-icon {
  pointer-events: none;
}

body.customer-login-page--register .customer-login__card {
  max-width: 620px;
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 48px rgba(13, 148, 136, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__card {
  background: rgba(30, 41, 59, 0.92);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.customer-login__register-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.9) 0%, rgba(153, 246, 228, 0.55) 100%);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

:root[data-theme="dark"] .customer-login__register-badge {
  color: #99f6e4;
  background: rgba(15, 118, 110, 0.28);
  border-color: rgba(45, 212, 191, 0.28);
}

.customer-login__section {
  margin-bottom: 16px;
  padding: 16px 16px 4px;
  border-radius: 18px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.65) 0%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .customer-login__section {
  border-color: rgba(45, 212, 191, 0.14);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.12) 0%, rgba(15, 23, 42, 0.2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.customer-login__section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(13, 148, 136, 0.18);
}

.customer-login__section-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  color: #0d9488;
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.18);
}

:root[data-theme="dark"] .customer-login__section-icon {
  color: #5eead4;
  background: linear-gradient(135deg, #134e4a 0%, #115e59 100%);
}

.customer-login__section-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f766e;
}

:root[data-theme="dark"] .customer-login__section-title {
  color: #99f6e4;
}

.customer-login__section-desc {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.customer-login__form-group--last {
  margin-bottom: 10px;
}

.customer-login__input--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230d9488' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px !important;
}

:root[data-theme="dark"] .customer-login__input--select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232dd4bf' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.customer-login__photo-card {
  padding: 16px 14px 14px;
  border-radius: 16px;
  border: 1.5px dashed rgba(13, 148, 136, 0.28);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

:root[data-theme="dark"] .customer-login__photo-card {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(45, 212, 191, 0.24);
}

.customer-login__photo-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #0d9488;
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.95) 0%, rgba(153, 246, 228, 0.65) 100%);
}

:root[data-theme="dark"] .customer-login__photo-card-icon {
  color: #5eead4;
  background: linear-gradient(135deg, rgba(19, 78, 74, 0.85) 0%, rgba(17, 94, 89, 0.65) 100%);
}

.customer-login__hint--center {
  display: block;
  text-align: center;
  margin-top: 10px;
}

.customer-login__photo-preview {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(13, 148, 136, 0.18);
}

.customer-login__photo-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.customer-login__photo-preview img {
  max-width: min(100%, 220px);
  max-height: 220px;
  border-radius: 14px;
  border: 2px solid rgba(13, 148, 136, 0.18);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  object-fit: cover;
}

body.customer-login-page--register .customer-login__actions {
  margin-top: 8px;
}

body.customer-login-page--register .customer-login__btn:not(.customer-login__btn--outline) {
  min-height: 52px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* Kontras tinggi — semua field mudah dibaca & terlihat terisi */
body.customer-login-page--register .customer-login__label {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

body.customer-login-page--register .customer-login__hint {
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
}

body.customer-login-page--register .customer-login__input-icon {
  color: #475569;
  font-size: 1.15rem;
}

body.customer-login-page--register .customer-login__input,
body.customer-login-page--register textarea.customer-login__input,
body.customer-login-page--register select.customer-login__input {
  border: 2px solid #64748b;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.07);
}

body.customer-login-page--register .customer-login__input::placeholder,
body.customer-login-page--register textarea.customer-login__input::placeholder {
  color: #64748b;
  font-weight: 500;
  opacity: 1;
}

body.customer-login-page--register .customer-login__input:focus,
body.customer-login-page--register textarea.customer-login__input:focus,
body.customer-login-page--register select.customer-login__input:focus {
  border-color: #0d9488;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.24);
}

body.customer-login-page--register .customer-login__input.is-filled,
body.customer-login-page--register textarea.customer-login__input.is-filled,
body.customer-login-page--register select.customer-login__input.is-filled {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #042f2e;
}

body.customer-login-page--register .customer-login__input:required:placeholder-shown:not(:focus),
body.customer-login-page--register textarea.customer-login__input:required:placeholder-shown:not(:focus),
body.customer-login-page--register select.customer-login__input:required:invalid:not(:focus) {
  border-color: #d97706;
  background: #fffbeb;
}

body.customer-login-page--register .customer-login__form-group.is-filled .customer-login__gps-btn {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #065f46;
}

body.customer-login-page--register .customer-login__section {
  border: 2px solid rgba(13, 148, 136, 0.22);
  background: #ffffff;
}

body.customer-login-page--register .customer-login__photo-card {
  border: 2px dashed #64748b;
  background: #ffffff;
}

body.customer-login-page--register .customer-login__photo-card.is-filled {
  border-style: solid;
  border-color: #0f766e;
  background: #ecfdf5;
}

body.customer-login-page--register .customer-login__gps-btn,
body.customer-login-page--register .customer-login__photo-btn {
  border-width: 2px;
  font-weight: 700;
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__label {
  color: #f8fafc;
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__hint {
  color: #cbd5e1;
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__input,
:root[data-theme="dark"] body.customer-login-page--register textarea.customer-login__input,
:root[data-theme="dark"] body.customer-login-page--register select.customer-login__input {
  border-color: #94a3b8;
  background: #1e293b;
  color: #f8fafc;
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__input.is-filled,
:root[data-theme="dark"] body.customer-login-page--register textarea.customer-login__input.is-filled,
:root[data-theme="dark"] body.customer-login-page--register select.customer-login__input.is-filled {
  border-color: #2dd4bf;
  background: #134e4a;
  color: #ecfdf5;
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__input:required:placeholder-shown:not(:focus),
:root[data-theme="dark"] body.customer-login-page--register textarea.customer-login__input:required:placeholder-shown:not(:focus),
:root[data-theme="dark"] body.customer-login-page--register select.customer-login__input:required:invalid:not(:focus) {
  border-color: #fbbf24;
  background: #422006;
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__section {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(15, 23, 42, 0.65);
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__photo-card {
  border-color: #94a3b8;
  background: rgba(15, 23, 42, 0.55);
}

:root[data-theme="dark"] body.customer-login-page--register .customer-login__photo-card.is-filled {
  border-color: #2dd4bf;
  background: rgba(19, 78, 74, 0.45);
}

@media (min-width: 768px) {
  body.customer-login-page--register .customer-login__bg-shape {
    animation: none;
  }

  body.customer-login-page--register .customer-login__bg-dots {
    background-image: none;
    background-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-login__bg-shape,
  .customer-login__card,
  .customer-login__logo-wrap,
  .customer-login__title,
  .customer-login__subtitle,
  .customer-login__alert,
  .customer-login__form-group,
  .customer-login__actions,
  .customer-login__footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
