:root {
  --bg: #f8fbff;
  --fg: #1e293b;
  --card: #ffffff;
  --muted: #e2e8f0;
  --accent: #0077b6;
  /* Ocean Blue */
  --accent-light: #48cae4;
  --accent-gradient: linear-gradient(135deg, #00b4d8, #0077b6);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Google-style sign-in button (official-looking) */
.oa-google-btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 10px 18px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  color: #202124;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  cursor: pointer;
  transition: box-shadow .12s ease, transform .06s ease, background-color .12s ease;
  min-width: 320px; /* adjust or remove to fit your layout */
  max-width: 100%;
  text-align: left;
}

/* icon container */
.oa-google-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  margin-left: 6px;
}

/* keep the G crisp and sized correctly */
.oa-google-icon img{
  width: 18px;   /* official small size */
  height: 18px;
  display:block;
}

/* text */
.oa-google-text{
  flex: 1 1 auto;
  display:inline-block;
  text-align:center;
  color: #202124;
  font-weight:600;
}

/* hover / focus */
.oa-google-btn:hover{
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  background: #fff;
}
.oa-google-btn:active{
  transform: translateY(0);
}
.oa-google-btn:focus{
  outline: 3px solid rgba(66,133,244,0.12);
  outline-offset: 2px;
}

/* small / responsive adjustments */
@media (max-width:420px){
  .oa-google-btn{ padding:10px; min-width:240px; gap:10px; }
  .oa-google-text{ font-size:14px; }
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== Responsive Header (Oceanapps) ===== */
.oa-header {
  background: var(--card);
  border-bottom: 1px solid var(--muted);
  position: sticky;
  top: 0;
  z-index: 50;
}
.oa-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.logo {
  width: 200px;
  height: 34px;
  display: inline-block;
}
.brand-text {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  background: transpare nt;
  border: 1px solid var(--muted);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--fg);
}
.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.nav-links a {
  color: var(--fg);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
}
.nav-cta {
  padding: 10px 14px;
}

@media (max-width: 840px) {
  .oa-nav {
    grid-template-columns: 1fr auto;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--muted);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
  }
}

/* Improve general spacing on small screens */
@media (max-width: 600px) {
  .container {
    padding: 16px;
  }
  .card {
    padding: 16px;
  }
}

/* Cards */
.card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Forms & Buttons */
/* input,
select,
button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--muted);
  background: #f1f5f9;
  color: var(--fg);
  font-size: 0.95rem;
  margin-top: 6px;
  margin-bottom: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
} */

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
  outline: none;
}

button {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0096c7, #005f73);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

.table th {
  background: #eaf4fa;
  color: #005f73;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--muted);
}

.table tr:hover td {
  background: #f1f9ff;
}

/* Utility classes */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: #003049;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Footer */
footer {
  background: var(--card);
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid var(--muted);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.05);
}

/* Oceanapps branding */
header h1::after {
  content: " — Inspiring Digital Waves";
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
  color: #caf0f8;
  margin-left: 4px;
}

/* --- Hero --- */
.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  background: linear-gradient(180deg, #eaf6ff 0%, #ffffff 100%);
  border: 1px solid var(--muted);
}

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

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e6f6ff;
  color: #075985;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.6rem);
  margin: 6px 0 10px 0;
  line-height: 1.2;
}

.lead {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: #f8fafc;
  color: var(--fg);
  border-color: var(--muted);
}

.btn-ghost:hover {
  background: #eef2f7;
}

.trust {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 6px;
}

.trust .dot {
  margin: 0 8px;
}

.trust .tick {
  color: #0a9396;
  margin-right: 4px;
}

/* Glass KPI grid */
.hero-visual {
  display: grid;
  justify-items: center;
}

.glass {
  display: grid;
  gap: 12px;
  backdrop-filter: blur(6px);
}

.glass-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.kpi {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0b7285;
}

.kpi-label {
  font-size: 0.9rem;
  color: #475569;
}

/* Sections */
.section-title {
  margin: 0 0 12px 0;
  font-size: 1.4rem;
}

.features .feature {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.features .feature:hover {
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.steps .steps-list {
  margin: 0 0 16px 18px;
  color: #334155;
}

.steps .steps-list span {
  color: #0b7285;
  font-weight: 700;
}

.quote blockquote {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
  line-height: 1.6;
}

.quote .quote-author {
  margin-top: 8px;
  color: #475569;
  font-size: 0.95rem;
}

/* --- Courses header strip --- */
.header-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.header-left .page-title {
  margin: 0 0 6px 0;
}

.page-sub {
  margin: 0;
  color: #64748b;
}

.header-right {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 12px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}

.input-wrap input {
  padding-left: 36px;
}

@media (max-width: 900px) {
  .header-strip {
    grid-template-columns: 1fr;
  }

  .header-right {
    grid-template-columns: 1fr;
  }
}

/* --- Course cards --- */
.course-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.course-bar {
  height: 6px;
  width: 100%;
  background: var(--accent-gradient);
  border-radius: 12px 12px 0 0;
  margin: -20px -20px 14px -20px;
  /* reach card edges */
}

.course-title {
  margin: 6px 0 6px 0;
}

.muted {
  color: #64748b;
  margin: 0 0 12px 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  background: #eaf4fa;
  color: #005f73;
  border: 1px solid #d7e8f0;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.chip-soft {
  background: #f6fbff;
  color: #0b7285;
  border-color: #e2f2f8;
}

.cta-row {
  display: flex;
  gap: 10px;
}

/* --- Buttons (reuse) --- */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: #f8fafc;
  color: var(--fg);
  border-color: var(--muted);
}

.btn-ghost:hover {
  background: #eef2f7;
}

/* --- Loading skeleton --- */
.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton .sk-line,
.skeleton .sk-chip,
.skeleton .sk-btn {
  border-radius: 8px;
  background: linear-gradient(90deg, #eef4f9 25%, #e6edf5 37%, #eef4f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  height: 14px;
  margin-bottom: 10px;
}

.skeleton .sk-chip {
  width: 80px;
  height: 24px;
  display: inline-block;
  margin-right: 8px;
}

.skeleton .sk-btn {
  height: 40px;
  width: 140px;
  margin-top: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* --- Empty state --- */
.empty {
  text-align: center;
  padding: 30px;
}

.empty.hidden {
  display: none;
}

.empty .empty-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* =====================
   ADMIN DASHBOARD CARDS
   ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card, #ffffff);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--accent, #007bff);
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent, #007bff);
  font-weight: 600;
}

.card p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Light hover ripple background */
.card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at center, rgba(91,192,190,0.1), transparent 70%);
  transform: scale(0);
  transition: transform 0.4s ease;
  z-index: 0;
}

.card:hover::before {
  transform: scale(1);
}

/* Adjust text layering */
.card * {
  position: relative;
  z-index: 1;
}

/* Page header card styling */
.card.header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card, #ffffff);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.card.header-strip h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.card.header-strip p {
  margin: 0;
  color: #777;
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .card.header-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}


/* --- Admin > Syllabus Details: tidy layout --- */
#detailForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "label1 label2"
    "area1  area2"
    "label3 label3"
    "area3  area3"
    "cta    cta";
  gap: 16px 20px;
  align-items: start;
}

/* Place labels & textareas explicitly */
#detailForm label:nth-of-type(1) { grid-area: label1; }
#detailForm label:nth-of-type(2) { grid-area: label2; }
#detailForm label:nth-of-type(3) { grid-area: label3; }

#detailForm textarea:nth-of-type(1) { grid-area: area1; }
#detailForm textarea:nth-of-type(2) { grid-area: area2; }
#detailForm textarea:nth-of-type(3) { grid-area: area3; }

/* Visual polish */
#detailForm label {
  font-weight: 700;
  color: #24324a;
  margin: 0 0 4px 2px;
}

#detailForm textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f7fafc;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.02);
  resize: none; /* we’ll auto-grow via JS */
  line-height: 1.55;
  font-size: 0.97rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#detailForm textarea:focus {
  background: #fff;
  border-color: #89c2ff;
  box-shadow: 0 0 0 3px rgba(0,123,255,.15);
  outline: none;
}

/* CTA full width row */
#detailForm .cta-row {
  grid-area: cta;
  margin-top: 8px;
}

/* Button height for nicer tap targets */
#detailForm .cta-row .btn {
  height: 46px;
  border-radius: 12px;
}

/* Responsive: stack nicely on small screens */
@media (max-width: 900px) {
  #detailForm {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label1" "area1"
      "label2" "area2"
      "label3" "area3"
      "cta";
  }
}


/* --- Admin > Modules form polish --- */
#modal {
  background: linear-gradient(180deg, rgba(0,123,255,0.04), rgba(0,123,255,0.02));
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

#modal h3 {
  margin-top: 0;
  font-weight: 700;
  color: #245;
  margin-bottom: 6px;
}

#form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */
  grid-template-areas:
    "label-order  label-hours"
    "order        hours"
    "label-title  label-title"
    "title        title"
    "label-desc   label-desc"
    "desc         desc"
    "cta          cta";
  gap: 14px 16px;
  align-items: start;
}

/* place labels */
#form label:nth-of-type(1) { grid-area: label-order;  }
#form label:nth-of-type(2) { grid-area: label-title;  }
#form label:nth-of-type(3) { grid-area: label-desc;   }
#form label:nth-of-type(4) { grid-area: label-hours;  }

/* place fields (order of inputs: order, title, description, hours) */
#form input[name="module_order"] { grid-area: order; }
#form input[name="title"]        { grid-area: title; }
#form textarea[name="description"]{ grid-area: desc; }
#form input[name="hours"]        { grid-area: hours; }

/* visuals */
#form label {
  font-weight: 700;
  color: #24324a;
  margin: 0 0 4px 2px;
}

#form input, 
#form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f7fafc;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.02);
  font-size: 0.97rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#form textarea {
  min-height: 120px;
  resize: none; /* auto-grow via JS */
  line-height: 1.5;
}

#form input:focus,
#form textarea:focus {
  background: #fff;
  border-color: #89c2ff;
  box-shadow: 0 0 0 3px rgba(0,123,255,.15);
  outline: none;
}

#form .cta-row {
  grid-area: cta;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

#form .cta-row .btn { 
  height: 46px; 
  border-radius: 12px; 
}

/* small screens */
@media (max-width: 860px) {
  #form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label-order" "order"
      "label-hours" "hours"
      "label-title" "title"
      "label-desc"  "desc"
      "cta";
  }
  #form .cta-row { grid-template-columns: 1fr; }
}





/* Input wrapper keeps the eye inside the field */
.oa-input-wrap { position: relative; }
.oa-input-wrap .oa-input { padding-right: 52px; }

/* Eye button (unchanged box size) */
.oa-eye{
  position: absolute;
  right: 8px;
  top: 0; bottom: 0;
  margin: auto 0;
  height: 36px;         /* do NOT change container box */
  width: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: none !important;
  overflow: hidden;     /* if anything scales, keep inside */
}

/* Lock icon sizing — high specificity & !important to beat globals */
.oa-auth .oa-eye svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px;
}

/* Stroke/fill so it’s clear on any theme */
.oa-auth .oa-eye svg,
.oa-auth .oa-eye svg path,
.oa-auth .oa-eye svg circle {
  stroke: #0b132b !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Swap which icon is shown */
.oa-eye .ico-eye-off { display: none; }
.oa-eye.on .ico-eye      { display: none; }
.oa-eye.on .ico-eye-off  { display: block; }

/* Optional “on” tint */
.oa-eye.on { background: #e8fbf9; border-color: #3fbfb9; }

/* Safety: prevent any global svg rules hijacking within auth */
.oa-auth svg { max-width: none !important; }


/* Footer + modal parts remain unchanged */

/* keep your existing rules … then add these */
.oa-eye svg,
.oa-eye svg path,
.oa-eye svg circle {
  stroke: #0b132b !important;     /* visible outline */
  fill: none !important;           /* outline only */
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


/* Footer row and chip buttons stay as previously styled */
.oa-auth__links{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin-top:12px; padding:0; background:transparent; border:0; box-shadow:none;
}
.btn-chip{
  --gradA:#14b3c2; --gradB:#0a63a4;
  background:linear-gradient(90deg,var(--gradA),var(--gradB));
  color:#fff; text-decoration:none; padding:8px 14px;
  border-radius:10px; border:none; display:inline-flex; align-items:center; justify-content:center;
  font-weight:600; line-height:1; box-shadow:0 2px 6px rgba(0,0,0,.15);
}
.btn-chip:focus{ outline:2px solid rgba(20,179,194,.35); outline-offset:2px; }

/* Modal (unchanged look, just reiterate no transitions on close button) */
.oa-modal{ position:fixed; inset:0; display:none; z-index:60; background:rgba(8,15,30,.45);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.oa-modal.open{ display:block; }
.oa-modal__sheet{
  width:min(520px, 92vw); margin:8vh auto 0; border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.70));
  box-shadow:0 20px 60px rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.55);
  padding:22px 22px 18px;
}
.oa-modal__titlebar{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.oa-close{
  width:34px; height:34px; border-radius:10px; border:1px solid rgba(0,0,0,.1);
  background:#fff; color:#0b132b; display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:700; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.12);
  transition:none !important;
}
.oa-close:focus{ outline:none; }





  /* ==========================
    Compact login — single clean stylesheet
    Paste at the end of your login CSS
    ========================== */

  /* rhythm & sizing */
  :root{
    --oa-header-h: 54px;
    --card-w: min(640px, 94vw);
    --control-w: min(520px, calc(var(--card-w) - 64px));
    --control-h: 44px;
    --gap: 14px;
    --card-radius: 12px;
    --label-pad: 8px; /* adjust to 0/6/10px if you want different inset */
  }

  /* page & card */
  .oa-auth{
    min-height: calc(100vh - var(--oa-header-h));
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    box-sizing:border-box;
  }
  .oa-auth__right{
    width: var(--card-w);
    border-radius: var(--card-radius);
    background: linear-gradient(180deg,#fff,#f7fbff);
    padding: 18px 28px 44px; /* extra bottom space for button shadow */
    box-shadow: 0 18px 40px rgba(10,30,50,0.06);
    border: 1px solid rgba(12,36,60,0.04);
    box-sizing:border-box;
    display:block;
  }

  /* heading */
  .oa-auth__head{ margin-bottom: calc(var(--gap) * 0.4); }
  .oa-auth__head h2{ font-size:1.45rem; margin:0 0 6px; }
  .oa-auth__head .muted{ color:#6b7c86; font-size:0.92rem; text-align:center; margin:0; }

  /* form container (single column stack) */
  .oa-form{
    width:100%;
    max-width: var(--control-w);
    margin: 0 auto;
    display:flex;
    flex-direction:column;
    gap: var(--gap);
    align-items:stretch; /* inputs fill width */
    box-sizing:border-box;
    padding-top:6px;
  }

  /* label block: full-width block aligned to same control width, label text LEFT */
  .oa-form label{
    display:block;
    width:100%;
    max-width:var(--control-w);
    margin: 0 auto 6px;
    text-align:left !important;
    padding-left: var(--label-pad);
    color:#344655;
    font-size:0.92rem;
    font-weight:500;
    box-sizing:border-box;
  }

  /* inputs & controls: uniform sizing */
  .oa-input,
  .oa-input-wrap input,
  .oa-google-btn,
  .oa-btn-full{
    width:100%;
    max-width: var(--control-w);
    box-sizing:border-box;
    margin:0 auto;
  }

  /* input visuals */
  .oa-input,
  .oa-input-wrap input{
    height: var(--control-h);
    padding: 0 14px;
    border-radius: 10px;
    font-size:0.95rem;
    border: 1px solid rgba(12,18,28,0.06);
    background: #f4f9ff;
    box-shadow: none;
    display:block;
    transition: box-shadow .12s ease, border-color .12s ease;
  }

  /* focus state (accessible) */
  .oa-input:focus,
  .oa-input-wrap input:focus{
    outline: none;
    border-color: rgba(0,112,200,0.18);
    box-shadow: 0 8px 20px rgba(2,80,140,0.06);
  }

  /* Google button — narrower than full input but centered */
  .oa-google-btn{
    max-width: calc(var(--control-w) * 0.72);
    min-height:42px;
    padding: 10px 14px;
    border-radius: 10px !important;
    background:#fff;
    border: 1px solid rgba(12,18,28,0.05);
    box-shadow: 0 8px 20px rgba(10,30,50,0.04);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    margin: 6px auto 4px;
    order:-1; /* keep above inputs */
  }

  /* divider */
  .oa-divider{
    width:100%;
    max-width:var(--control-w);
    display:flex;
    align-items:center;
    gap:12px;
    margin: 4px auto;
    color:#6e7f89;
    font-weight:700;
  }
  .oa-divider::before,
  .oa-divider::after{ content:""; flex:1; height:1px; background:#e6edf2; }

  /* input wrapper + eye button (password) */
  .oa-input-wrap{
    position:relative;
    display:block;              /* ensures wrapper doesn't shrink */
    width:100%;
    max-width:var(--control-w);
    box-sizing:border-box;
    margin:0 auto;
  }

  /* reserve space inside the input for the eye so text width is identical across fields */
  .oa-input-wrap .oa-input{
    padding-right: 72px; /* eye width + margin */
  }

  /* eye button style: subtle, vertically centered, non-disruptive hover */
  .oa-input-wrap .oa-eye{
    position:absolute;
    right:10px;
    top:50%;
    transform: translateY(-50%);
    height:36px;
    width:36px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid rgba(12,18,28,0.06);
    box-shadow: 0 3px 6px rgba(10,20,30,0.04);
    color: rgba(11,35,48,0.7);
    transition: transform .10s ease, box-shadow .12s ease, background .12s ease;
    z-index:3;
  }
  .oa-input-wrap .oa-eye:hover{
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 6px 14px rgba(2,60,100,0.05);
    background: rgba(0,120,180,0.06);
    color: rgba(2,70,110,0.95);
  }
  .oa-input-wrap .oa-eye:active{ transform: translateY(-50%) scale(1.0); }

  /* primary button */
  .oa-btn-full{
    width:100%;
    max-width:var(--control-w);
    margin:8px auto 0;
    height:46px;
    border-radius:12px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background: linear-gradient(135deg,#00b4d8,#0077b6);
    box-shadow: 0 12px 30px rgba(2,80,120,0.08);
    border:0;
  }

  /* footer chips (links) */
  .oa-auth__links{
    max-width:var(--control-w);
    margin: 12px auto 0;
    display:flex;
    gap:12px;
    justify-content:center;
    box-sizing:border-box;
  }
  .btn-chip{ padding:6px 12px; border-radius:10px; }

  /* messages & small text */
  .oa-msg, .oa-caps, .muted{ color:#6b7c86; font-size:0.9rem; }

  /* modal small button polish */
  .oa-modal .btn{ min-width:120px; }

  /* responsive behavior */
  @media (max-width: 720px){
    :root{ --card-w:92vw; --control-w: calc(var(--card-w) - 48px); }
    .oa-auth__right{ padding:14px 16px 30px; }
    .oa-google-btn{ max-width: calc(var(--control-w) * 0.86); }
    .oa-input, .oa-btn-full{ height:40px; }
    .oa-input-wrap .oa-eye{ right:8px; width:32px; height:32px; }
    .oa-form label{ padding-left:6px; }
  }

  /* very short viewports allow page scroll */
  @media (max-height:460px){
    body{ overflow:auto; }
    .oa-auth__right{ overflow:visible; padding-bottom:20px; }
  }

  /* ---------- Patch: make password input match email/input width exactly ---------- */
/* Place this at the end of your login CSS so it overrides earlier rules. */

/* Ensure wrappers and inputs use the exact same box-model and max-width */
.oa-input,
.oa-input-wrap,
.oa-input-wrap .oa-input {
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--control-w) !important;
  display: block !important;
  min-width: 0; /* prevent flex/inline shrink issues in some layouts */
}

/* Make sure the wrapper doesn't add extra padding or margin that shrinks the input */
.oa-input-wrap {
  margin: 0 !important;
  padding: 0 !important;
  position: relative; /* preserve absolute eye positioning */
}

/* Reserve the eye space inside the input only (so the input's visible box stays identical) */
.oa-input-wrap .oa-input {
  padding-right: 72px !important; /* matches eye width + gap */
  border-radius: 10px;
  height: var(--control-h) !important;
}

/* Eye button: absolute and does not influence layout */
.oa-input-wrap .oa-eye {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 36px !important;
  width: 36px !important;
  margin: 0 !important;
  box-shadow: 0 3px 6px rgba(10,20,30,0.04);
  z-index: 3 !important;
}

/* If any other rule accidentally sets input to inline or shrinkable, force its block behaviour */
.oa-input,
.oa-input-wrap .oa-input {
  white-space: nowrap;
}

/* Small screens: keep same behaviour with reduced eye size */
@media (max-width:720px) {
  .oa-input-wrap .oa-input { padding-right: 60px !important; }
  .oa-input-wrap .oa-eye { right: 8px !important; width: 32px !important; height: 32px !important; }
}





/* ===== Register page =====
   Targets both our compact classes and the existing card layout so it
   improves visually whether you use the .compact-* markup or the original.
*/

/* --- card improvements --- */
/* #compactRegisterCard.compact-card,
.card.register-card,
.card {
  max-width: 780px;
  margin: 18px auto;
  padding: 20px 28px;
  border-radius: 12px;
  background: linear-gradient(180deg,#ffffff,#f6fbff);
  border: 1px solid rgba(12,36,60,0.04);
  box-shadow: 0 18px 36px rgba(10,30,50,0.05);
  box-sizing: border-box;
} */

/* center heading and give breathing room */
#compactRegisterCard h2,
.card h2 {
  font-size: 1.6rem;
  margin: 6px 0 14px;
  color: #0b2330;
  font-weight: 700;
}

/* --- banner / notice --- */
.compact-notice,
.card .alert.info {
  background: rgba(14,113,173,0.06);
  border-left: 4px solid rgba(14,113,173,0.18);
  padding: 10px 14px;
  border-radius: 8px;
  color: #16384a;
  font-size: 0.96rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

/* --- shared label style (centered) --- */
.compact-label,
.card label {
  display:block;
  text-align:center;
  font-size: 0.95rem;
  color: #4b5f6b;
  margin-bottom: 8px;
}

/* --- inputs (apply to both compact-input and OA inputs inside card) --- */
.compact-input,
.card input[type="text"],
.card input[type="email"],
.card input[type="tel"],
.card input[type="password"],
.oa-input {
  width: 100%;
  max-width: 460px;                 /* makes inputs breathe inside card */
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(12,18,28,0.06);
  background: #f4f9ff;
  font-size: 0.95rem;
  box-sizing: border-box;
  display:block;
  margin: 0 auto;                   /* center inside column */
  transition: box-shadow .15s ease, border-color .15s ease;
}

/* subtle focus states */
.compact-input:focus,
.card input:focus,
.oa-input:focus {
  outline: none;
  border-color: rgba(0,112,200,0.26);
  box-shadow: 0 6px 20px rgba(2,80,140,0.06);
}

/* --- two-column grid helpers (if you use .compact-row) --- */
.compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 10px;
}

/* ensure inputs inside the grid stretch to column width */
.compact-field { display:flex; flex-direction:column; align-items:center; }
.compact-field .compact-input { max-width:100%; }

/* mobile: collapse the two-column layout */
@media (max-width: 720px) {
  .compact-row { grid-template-columns: 1fr; gap: 10px; }
  .compact-input, .card input { max-width: calc(92vw - 48px); }
  #compactRegisterCard, .card { padding-left:14px; padding-right:14px; }
}

/* --- password eye button --- */
.compact-input-wrap,
.card .input-wrap {
  position: relative;
  width:100%;
  max-width:460px;
  margin: 0 auto;
}
.compact-eye,
.card .input-wrap .oa-eye,
.oa-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  border-radius: 8px;
  border: 1px solid rgba(12,18,28,0.06);
  background: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 3px 6px rgba(10,20,30,0.04);
  transition: transform .12s ease;
}
.compact-eye:active,
.card .input-wrap .oa-eye:active { transform: translateY(-50%) scale(.98); }

/* ensure password field has extra right padding so text doesn't collide with eye */
.compact-input[type="password"],
.card input[type="password"],
.oa-input[type="password"] {
  padding-right: 68px;
}

/* --- action button --- */
.compact-btn,
.card .btn-primary,
.btn-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  min-width: 160px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg,#00b4d8,#0077b6);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(2,80,120,0.08);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease;
}
.compact-btn:hover,
.card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(2,80,120,0.12); }

/* --- small chips/links --- */
.compact-links,
.card .links { display:flex; gap:10px; justify-content:center; margin-top:12px; }
.compact-chip,
.card .chip {
  padding:2px 6px;
  background: #d5f9ff;
  /* background: linear-gradient(180deg,#06b6d4,#0077b6); */
  color:#004a60;
  border-radius: 10px;
  text-decoration:none;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(2,80,120,0.06);
}

/* --- message area --- */
.compact-msg, #regMsg {
  min-height: 1.1em;
  font-size: 0.92rem;
  text-align:center;
  margin-top: 8px;
  color: #d04444; /* error color — empty by default */
}

/* optional: slightly dim footer area to match screenshot */
.site-footer {
  background: rgba(235, 242, 246, 0.6);
  padding: 30px 0;
  color: #6d7f8b;
}

/* Accessibility: keyboard focus */
.compact-input:focus-visible, .compact-btn:focus-visible, .compact-chip:focus-visible {
  outline: 3px solid rgba(0,123,200,0.12);
  outline-offset: 2px;
}

/* small helper to make full-width banners span card content (if needed) */
.compact-notice.full { width: calc(100% - 6px); margin: 0 auto 14px; }

/* ===== eye icon: subtle resting state, gentle hover ===== */

/* base: small, subtle button inside input */
.compact-eye,
.oa-eye,
.card .input-wrap .oa-eye {
  position: absolute;
  right: 8px;                  /* small inset from the edge */
  top: 50%;
  transform: translateY(-50%) scale(1); /* centered and no initial transform */
  height: 34px;
  width: 34px;                 /* modest square so it fits rounded inputs */
  border-radius: 8px;
  border: 1px solid rgba(12,18,28,0.04); /* very light border */
  background: rgba(255,255,255,0.95);    /* slight card-white */
  color: rgba(11,35,48,0.65);            /* muted icon color */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(10,20,30,0.03); /* subtle shadow so it separates from field */
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  cursor: pointer;
  z-index: 2;
  opacity: 0.95;
}

/* make sure the icon itself is smaller and centered (if you used an <svg> or text) */
.compact-eye svg,
.oa-eye svg,
.compact-eye i,
.oa-eye i {
  width: 16px;
  height: 16px;
  display: block;
  line-height: 1;
}

/* hover: gentle lift + slightly richer color, not huge scale */
.compact-eye:hover,
.oa-eye:hover {
  transform: translateY(-50%) scale(1.06); /* barely bigger */
  background: linear-gradient(180deg, rgba(0,150,190,0.08), rgba(0,95,150,0.06));
  color: rgba(2,70,110,0.95);
  box-shadow: 0 6px 18px rgba(2,60,100,0.06);
}

/* active: tiny press feedback */
.compact-eye:active,
.oa-eye:active {
  transform: translateY(-50%) scale(0.98);
}

/* keyboard focus: visible but subtle */
.compact-eye:focus,
.oa-eye:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,200,0.08);
}

/* ensure input has enough right padding (so text never collides) */
.compact-input[type="password"],
.card input[type="password"],
.oa-input[type="password"] {
  padding-right: 78px;  /* allow space for 34px eye + margins */
}

/* when input is small (mobile) reduce eye size and padding */
@media (max-width: 520px) {
  .compact-eye, .oa-eye { width:30px; height:30px; border-radius:6px; }
  .compact-input[type="password"], .card input[type="password"], .oa-input[type="password"] { padding-right: 64px; }
}

/* optional: slightly tuck the eye into rounded inputs to feel integrated */
.compact-input[style], .compact-input { border-radius: 10px; }
.compact-eye { right: 10px; }

/* If you want the eye to be even less visible when not hovered, uncomment:
.compact-eye { opacity: 0.8; filter: grayscale(.18); }
*/

/* Center the Register button container */
.compact-actions,
.card .oa-actions,
.card .actions {
    width: 100%;
    display: flex;
    justify-content: center;   /* centers the button */
    align-items: center;
    margin-top: 16px;
}

/* Ensure the button doesn’t get pushed left by margins */
.compact-btn,
.card .btn-primary,
.btn-primary {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* defensive: ensure the form uses grid and only ac-field / ac-full layout */
#ac-grid, form#ac-grid, form#ac-grid-3, .ac-grid-3, #form {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px 22px !important;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ensure ac-full spans whole width */
.ac-full { grid-column: 1 / -1 !important; }

/* each field wrapper must be a grid child */
.ac-field { display:flex; flex-direction:column; gap:6px; align-items:stretch; }

/* left-aligned labels and full-width inputs (stretch to column) */
.ac-field label, .ac-grid-3 label { text-align:left; margin:0 0 6px; }
.ac-grid-3 input, .ac-grid-3 select, .ac-grid-3 textarea { width:100% !important; box-sizing:border-box; }

/* handle any special 'row' containers by forcing span (if required) */
.ac-row { grid-column: 1 / -1; display:flex; gap:8px; }
