/* Bahari Automation — shared design system (used by BOTH login & dashboard) */
:root {
  --primary: #4fd8d0;
  --primary-2: #1f8f89;
  --accent: #f5a94e;
  --foreground: #d6deee;
  --background: #0a0e17;
  --panel: #101828;
  --panel-2: #16213a;
  --muted: #121a2a;
  --muted-text: #7c8aa5;
  --card-border: #263453;
  --danger: #e4634c;
  --success: #5bd37a;
}

* { box-sizing: border-box; }

body.bg-scene {
  margin: 0;
  min-height: 100vh;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Segoe UI", system-ui, sans-serif;
  color: var(--foreground);
  background:
    linear-gradient(rgba(79,216,208,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,216,208,.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 12%, rgba(79,216,208,.09), transparent 32%),
    radial-gradient(circle at 86% 86%, rgba(245,169,78,.07), transparent 34%),
    var(--background);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  background-attachment: fixed;
}

/* ---- ambient gradient blobs ---- */
.bg-blob {
  display: none;
}
.blob-1 { width: 470px; height: 470px; left: -150px; top: -130px;
  background: linear-gradient(135deg, var(--primary), #4aa3e0); }
.blob-2 { width: 410px; height: 410px; right: -130px; bottom: -150px;
  background: linear-gradient(135deg, var(--accent), #fcbf6d); animation-delay: -7s; }
.blob-3 { width: 260px; height: 260px; right: 18%; top: -80px;
  background: linear-gradient(135deg, #7cc3f2, var(--primary)); animation-delay: -11s; opacity: .28; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(32px, 25px) scale(1.06); }
}

/* ---- glossy waterdrops ---- */
.drop {
  display: none;
}
.drop::after {
  content: "";
  position: absolute;
  left: 18%; top: 12%;
  width: 32%; height: 22%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  transform: rotate(-24deg);
}
.drop-1 { width: 110px; height: 110px; left: 10%; top: 15%; }
.drop-2 { width: 62px;  height: 62px;  left: 20%; bottom: 16%; animation-delay: -2s; }
.drop-3 { width: 88px;  height: 88px;  right: 12%; top: 20%;  animation-delay: -4s; }
.drop-4 { width: 46px;  height: 46px;  right: 22%; bottom: 22%; animation-delay: -1s; }
.drop-5 { width: 30px;  height: 30px;  left: 36%;  top: 8%;   animation-delay: -5s; }
@keyframes bob {
  from { transform: translateY(-8px); }
  to   { transform: translateY(10px); }
}

/* ---- glass card ---- */
.glass-card {
  background: linear-gradient(180deg, rgba(16,24,40,.92), rgba(12,18,31,.94));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow:
    0 28px 70px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.03);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 220px at 4% 0%, rgba(79,216,208,.12), transparent 64%),
    radial-gradient(520px 220px at 100% 0%, rgba(245,169,78,.08), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 55%);
  opacity: .9;
  pointer-events: none;
}
.glass-card > * { position: relative; }

/* ---- brand ---- */
.brand-mark {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  font-size: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #13233c, #0c1526);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 28px rgba(79,216,208,.16), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 1px solid rgba(79,216,208,.45);
  pointer-events: none;
}
.brand-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}

/* ---- shared buttons ---- */
.btn-brand {
  background: var(--primary);
  color: #06201f;
  border: 0;
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(79,216,208,.16);
  transition: transform .18s, box-shadow .18s;
}
.btn-brand:hover, .btn-brand:focus-visible {
  color: #06201f;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79,216,208,.24);
}
.btn-brand:active { transform: translateY(0); }
.btn-brand:focus-visible { outline: 3px solid rgba(247, 148, 29, .6); outline-offset: 2px; }
.btn-brand::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn-brand:hover::after { left: 130%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.btn-ghost {
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(79,216,208,.11);
  transform: translateY(-1px);
}

.muted { color: var(--muted-text); }
.page-foot {
  text-align: center;
  color: rgba(124, 138, 165, .78);
  font-size: 13px;
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob, .drop { animation: none; }
  .btn-brand::after { display: none; }
}
