* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #eef5fc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* App Frame Mobile */
.app-container {
  width: 100%;
  max-width: 412px;
  height: 100vh;
  max-height: 915px;
  background: url('../bg.jpg') no-repeat center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* BODY CONTENT CONTAINER */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.content-body::-webkit-scrollbar { width: 4px; }
.content-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 4px; }

/* AUTH CARDVIEW MAIN */
.auth-card {
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* LOGO & BRANDING */
.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

.app-brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1.2;
}

.app-brand-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

/* FORM STYLING */
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0 14px;
  height: 52px;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
}

.custom-input::placeholder { color: #94a3b8; }

/* ROW PILIH TOKO & TOMBOL PLUS (+) */
.store-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.flex-1 { flex: 1; }

.btn-add-store {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-add-store:active {
  transform: scale(0.92);
  background-color: #f1f5f9;
}

/* ICONS & BADGES */
.input-icon {
  font-size: 18px;
  margin-right: 12px;
}

.blue-icon { color: #3b82f6; }
.yellow-icon { color: #eab308; }
.store-icon { color: #ec4899; }

.purple-badge {
  background-color: #a855f7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 6px;
  margin-right: 12px;
}

.toggle-password {
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  margin-left: 8px;
}

/* SELECT INPUT */
.custom-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #334155;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.arrow-down {
  font-size: 12px;
  color: #64748b;
  pointer-events: none;
}

/* BUTTON PRIMARY */
.btn-auth-primary {
  width: 100%;
  height: 52px;
  background-color: #4ea5f9;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(78, 165, 249, 0.3);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-auth-primary:active {
  transform: scale(0.98);
  background-color: #3b82f6;
}

.auth-footer-link {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
  text-align: center;
}

.link-blue {
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
}

/* MODAL OVERLAY TAMBAH TOKO */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99;
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.modal-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.margin-top-12 { margin-top: 12px; }

.custom-input-modal {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  background-color: #f8fafc;
}

.custom-input-modal:focus {
  border-color: #3b82f6;
  background-color: #ffffff;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-modal-cancel, .btn-modal-save {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn-modal-cancel {
  background-color: #f1f5f9;
  color: #64748b;
}

.btn-modal-save {
  background-color: #3b82f6;
  color: #ffffff;
}

/* Hilangkan Spinner bawaan Input Number */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.d-none { display: none !important; }

/* Teks Error Inline */
.error-msg {
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  margin-top: 2px;
  margin-left: 4px;
  display: block;
}

/* State Input ketika Error */
.input-wrapper.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.input-wrapper.input-error:focus-within {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}