:root {
  --primary: #000000;
  --accent: #888888;
  --dark: #333333;
  --softdark: var(--dark); /* default for themes that don't set this */
  --light: #dddddd;
  --bg: #dddddd;
  --gray: #6c757d;
  --background: #f2f2f2;

  /* optional extras */
  --glow: 0 0 0;    /* fallback */
  --warn: #fffbe6;  /* fallback */

  /* Glizmu UI tokens */
  --gzm-line: #E5E8EB;
  --gzm-ink: #102026;
  --gzm-ink-2: #5b6871;
  --gzm-surface: #ffffff;
  --gzm-surface-2: #F7F8F9;
  --gzm-accent: #00a3ad;
}

:root.theme-GlizmuBlue {
  --primary: #36747D;   /* primary */
  --accent: #e29578;    /* accent */
  --dark: #003135;      /* dark */
  --softdark: #01474c;  /* soft dark */
  --light: #effdff;     /* light */
  --bg: #effdff;        /* UI chrome */
  --gray: #6c757d;
  --background: #effdff; /* page surface */
}

:root.theme-Sparticus {
  --primary: #483c32;
  --accent: #108080;	
  --dark: #000000;
  --softdark: #101010;
  --light: #d5d5f2;
  --bg: #d5d5f2;
  --gray: #6c757d;
  --background: #e8e8f7;
}

:root.theme-StickySituation {
  --primary: #b26366;
  --accent: #6b2325;
  --dark: #000000;
  --softdark: #1a0e0f;
  --light: #ffe3e6;
  --bg: #ffe3e6;
  --gray: #6c757d;
  --background: #fff5f5;
}

:root.theme-GrayScale {
  --primary: #000000;
  --accent: #888888;
  --dark: #333333;
  --softdark: #2a2a2a;
  --light: #dddddd;
  --bg: #dddddd;
  --gray: #6c757d;
  --background: #f2f2f2;
}



.page-title .muted { color: var(--gzm-ink-2); font-weight: 500; }
.card-header h2 { margin: 0; font-size: 18px; }

/* ==== Page / Nav / Typography ==== */
body {
  margin: 0;
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
  background-color: var(--light);
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* <- keeps the image stationary */
  color: var(--dark);
}

.nav-links { display: flex; gap: 1rem; }
.nav-links button {
  padding: 0.4rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--light);
  cursor: pointer;
  font-size: 15px;
  line-height: 20px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15), inset -1px -1px 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.nav-links button:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2), inset -1px -1px 1px rgba(255, 255, 255, 0.15);
}

.logo button {
  padding: 0.3rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--dark);
  color: var(--light);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1), inset -1px -1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.logo button:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15), inset -1px -1px 1px rgba(255, 255, 255, 0.15);
}

header.dynamic-header {
  background-size: cover;
  background-position: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: white;
}

footer {
  background: rgb(19, 58, 57,0.9);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
footer p { margin: 0.5rem 0; opacity: 0.8; }

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary);
}

  .nav-links {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, var(--light), #ffffff);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    line-height: 3rem;
  }
  .nav-links.active { display: flex; }

/* Inline CSS merged */

  :root{
    /* fallback brand vars if not already defined in standard_page_styles.css */
    --primary: #026e78;
    --accent: #e29578;
    --dark: #003135;
	--softdark: #01474c;
    --light: #effdff;
    --gray: #6c757d;
    --bg: #effdff;
  }

  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Full-bleed background image with a subtle dark gradient overlay for readability */
  .page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient( to bottom right, var(--softdark), rgba(0,0,0,.25) ),
      url('../img/bg/login/bg19.jpg') center center / cover no-repeat fixed;
    /* You can swap the url() to your preferred image path */
    transform: translateZ(0); /* promote to its own layer for smoother scrolling */
  }

  /* Shell to center the frame */
  .auth-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;   /* keep it centered horizontally */
  align-items: flex-start;   /* stick to top instead of middle */
  padding: 20px 16px 40px;   /* top padding controls distance from header */
}


  /* Translucent frame (glassmorphism-lite) */
  .auth-frame {
    width: min(960px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    padding: clamp(10px, 3vw, 32px);
  }

  /* Header area in frame */
  .frame-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }
  .brand {
    display:flex;
	  align-items:center;
	  gap:12px;
	  padding-top: 2rem;
  }
  .brand-badge {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary);
    display:grid; place-items:center;
    color: var(--light); font-weight: 700;
    letter-spacing: .5px;
  }
  .brand h1 {
    font-size: clamp(18px, 2.2vw, 22px);
    margin: 0;
    color: var(--light);
    mix-blend-mode: difference; /* subtle effect on dark areas */
  }

  /* Tabs (Login / Register) */
  .auth-tabs {
    display: inline-flex;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    padding: 4px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .auth-tabs button {
    all: unset;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
  }
  .auth-tabs button.active {
    background: var(--primary);
    color: var(--light);
  }

  /* Inner layout */
  .auth-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 12px;
  }
  @media (min-width: 840px){
    .auth-content {
      grid-template-columns: 1fr 1fr;
      gap: clamp(20px, 3vw, 32px);
    }
  }

  /* Left side: copy */
  .promo {
    color: var(--light);
  }
  .promo h2 {
    margin: 0 0 8px 0;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--light);
  }
  .promo p {
    margin: 0;
    line-height: 1.6;
    opacity: .9;
  }

  /* Right side: forms */
  .auth-box {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  .auth-box h3 {
    margin: 0 0 6px 0;
    color: var(--primary);
    font-size: clamp(18px, 2.5vw, 20px);
  }

  label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
  }
  input.form-field {
    width: 100%; !important;
	max-width: 100%;
    box-sizing: border-box;   /* ensures padding + border are included in the width */
    padding: 12px 14px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
  }

  .form-row { margin-bottom: 12px; }
  .btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: var(--light);
    font-weight: 700;
    cursor: pointer;
    transition: transform .06s ease, background .2s ease;
  }
  .btn:hover { background: var(--accent); }
  .btn:active { transform: translateY(1px); }

  .muted {
    text-align:center;
    margin-top: 10px;
    font-size: .95rem;
  }
  .muted a { color: var(--dark); font-weight: 600; }

  /* Utility: hide */
  .hidden { display: none !important; }
head {
	padding-bottom: 60px;
}
