/* ALERTS */
.pm-alert{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  border:1px solid var(--border);
}
.pm-alert.ok{background:#ecfdf5;color:#065f46;border-color:#bbf7d0}
.pm-alert.err{background:#fef2f2;color:#991b1b;border-color:#fecaca}

/* EXISTING COMPONENTS (COMPAT) */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow);
  margin-top:14px;
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center
}

.btn{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-soft{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}

.table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px
}
.table th,.table td{
  padding:12px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:13px
}
.table th{
  color:var(--muted);
  font-weight:1000;
  background:#fbfdff
}
.badge{
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
  border:1px solid var(--border);
  background:#f8fafc
}

/* ===== Create Order UI ===== */
.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-top:14px;
}
.page-head h2{margin:0;font-size:20px}
.pm-form{margin-top:12px}

.pm-section{
  margin-top:14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:16px;
}

.pm-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.pm-section-title h3{margin:0;font-size:14px}

.pm-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f8fafc;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

.pm-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.pm-card h4{margin:0 0 8px}

.pm-soft{ background:#f8fbff; }

.pm-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.pm-grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

@media(max-width:980px){
  .pm-grid-2,.pm-grid-3{grid-template-columns:1fr}
}

label{
  display:block;
  font-weight:900;
  font-size:13px;
  margin:0 0 6px;
}

.input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  outline:none;
  font-size:13px;
}
textarea{resize:vertical}
.input:focus, select:focus, textarea:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(147,197,253,.35);
}

.pm-actions{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}
.pm-row-between{display:flex;justify-content:space-between;align-items:center;gap:10px}

.pm-submitbar{
  margin-top:12px;
  padding:14px;
  border-radius:16px;
  border:1px dashed #cbd5e1;
  background:#fbfdff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.pm-submit-title{font-weight:1000}

/* =========================
   AUTH (Login/Signup) UI
========================= */
.auth-wrap{
  min-height: calc(100vh - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 12px;
}

.auth-card{
  width: 100%;
  max-width: 520px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 22px;
  box-shadow: var(--shadow, 0 10px 25px rgba(2,6,23,.06));
  overflow:hidden;
}

.auth-head{
  padding: 20px 18px 14px;
  background: linear-gradient(180deg, rgba(37,99,235,.10), rgba(37,99,235,0));
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.auth-head h2{
  margin:0;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--text, #0f172a);
}

.auth-head p{
  margin: 8px 0 0;
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.6;
}

.auth-body{ padding: 16px 18px 18px; }

.auth-grid{ display:grid; gap: 12px; }

.auth-row label{
  display:block;
  font-weight: 900;
  font-size: 12px;
  color: var(--muted, #64748b);
  margin: 0 0 6px;
}

.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background:#fff;
  outline:none;
  font-size: 14px;
}

.input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.auth-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 900;
  margin: 6px 0 0;
}

.auth-divider::before,
.auth-divider::after{
  content:"";
  height:1px;
  background: var(--border, #e2e8f0);
  flex:1;
}

.oauth-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media(max-width:520px){
  .oauth-grid{ grid-template-columns: 1fr; }
}

.oauth-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background:#fff;
  font-weight: 900;
  font-size: 13px;
  color: var(--text, #0f172a);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.oauth-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow, 0 10px 25px rgba(2,6,23,.06));
}

.oauth-btn .icon{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color:#1e3a8a;
  font-weight: 1000;
}

.auth-note{
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.6;
  background:#f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  padding: 10px 12px;
  border-radius: 14px;
}

.auth-foot{
  padding: 14px 18px;
  border-top: 1px solid var(--border, #e2e8f0);
  color: var(--muted, #64748b);
  font-size: 12px;
}
.auth-foot a{ color: var(--brand, #2563eb); font-weight: 900; }


