/* ===== Ampplify Academy — theme variables (edit here to restyle the whole site) ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f6f7fb;
  --border: rgba(16,24,40,0.08);
  --border-strong: rgba(16,24,40,0.14);
  --text: #161a23;
  --text-muted: #6b7280;
  --text-soft: #475069;
  --text-faint: #98a2b3;
  --accent: #2563eb;
  --accent-hover: #4b83f0;
  --accent-orange: #fd7d01;
  --accent-orange-hover: #ff9633;
  --success: #16a34a;
  --success-bg: rgba(22,163,74,0.1);
  --warning: #d97706;
  --warning-bg: rgba(217,119,6,0.12);
  --danger: #e13a3a;
  --danger-bg: rgba(225,58,58,0.1);
  --info: #2563eb;
  --info-bg: rgba(37,99,235,0.1);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(16,24,40,0.06);
  --shadow-md: 0 12px 32px rgba(16,24,40,0.1);
  --shadow-lg: 0 24px 60px rgba(16,24,40,0.14);
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
h1, h2, h3, .disp { font-family: var(--font-display); }

/* ===== Auth card (signup / login / forgot) ===== */
.card { background: var(--surface-alt); padding: 2.2rem; border-radius: var(--radius-lg); width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.card-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.brand { display: inline-flex; align-items: center; margin-bottom: 1.6rem; font: 800 19px var(--font-display); color: inherit; text-decoration: none; }
.brand .a { color: var(--accent); }
.brand .badge-tag { background: var(--warning-bg); color: var(--warning); font: 700 11px var(--font-display); padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
label { display: block; font: 600 .8rem var(--font-body); color: var(--text-soft); margin-bottom: .4rem; margin-top: .9rem; }
label:first-of-type { margin-top: 0; }
p.subtitle { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.2rem; line-height: 1.5; }
input, button, select, textarea { width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); font-size: 1rem; font-family: inherit; }
input, select, textarea { background: var(--surface); color: var(--text); transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { resize: vertical; min-height: 90px; }
button { background: var(--accent-orange); color: #fff; border: none; cursor: pointer; font: 700 .95rem var(--font-display); transition: filter .15s, transform .15s, box-shadow .15s; margin-top: 1.2rem; box-shadow: 0 6px 16px rgba(253,125,1,0.25); }
button:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(253,125,1,0.3); }
button:active { transform: scale(.98) translateY(0); }
button.secondary { background: transparent; border: 1px solid var(--border-strong); color: var(--text); box-shadow: none; }
button.secondary:hover { background: rgba(16,24,40,.04); filter: none; box-shadow: none; }
button.accent-cyan { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,0.25); }
button.accent-cyan:hover { box-shadow: 0 10px 22px rgba(37,99,235,0.3); }
button.danger { background: var(--danger); color: #fff; box-shadow: 0 6px 16px rgba(225,58,58,0.25); }
button.danger:hover { filter: brightness(1.05); }
p.msg { margin-top: .8rem; font-size: .88rem; color: var(--danger); line-height: 1.4; }
p.link { margin-top: 1.2rem; font-size: .88rem; text-align: center; color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== Split-hero login layout ===== */
body.split { display: block; padding: 0; }
.auth-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2.5rem; }
.auth-top .brand { text-decoration: none; }
.auth-back { color: var(--text-muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.auth-back:hover { color: var(--accent); }
.split-wrap { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.split-brand { position: relative; background: linear-gradient(160deg, var(--surface-alt), var(--bg)); display: flex; flex-direction: column; justify-content: center; padding: 5rem; overflow: hidden; }
.split-brand::before { content: ''; position: absolute; top: -120px; left: -120px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,.16) 0%, rgba(37,99,235,0) 70%); }
.split-brand::after { content: ''; position: absolute; bottom: -140px; right: -140px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(253,125,1,.14) 0%, rgba(253,125,1,0) 70%); }
.split-brand > * { position: relative; z-index: 2; }
.split-brand h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.18; margin: 0 0 1.1rem; max-width: 440px; letter-spacing: -.02em; }
.split-brand .eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(37,99,235,.09); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.4rem; }
.split-brand p { color: var(--text-soft); font-size: 1rem; line-height: 1.7; max-width: 400px; }
.split-form { display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem 3rem; background: var(--surface); }
.split-form .inner { width: 100%; max-width: 380px; }
.split-form .inner h1 { font-size: 1.65rem; letter-spacing: -.02em; margin-bottom: .35rem; }
.auth-foot { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .76rem; line-height: 1.6; text-align: center; }
@media (max-width: 860px) { .auth-top { padding: 1.1rem 1.25rem; } .split-form { padding-top: 5.5rem; } }
@media (max-width: 860px) { .split-wrap { grid-template-columns: 1fr; } .split-brand { display: none; } }

/* ===== Landing page ===== */
body.landing {
  display: block; padding: 0; background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 8%, rgba(37,99,235,.12) 0%, rgba(37,99,235,0) 32%),
    radial-gradient(circle at 92% 14%, rgba(253,125,1,.12) 0%, rgba(253,125,1,0) 32%),
    radial-gradient(circle at 50% 85%, rgba(22,163,74,.08) 0%, rgba(22,163,74,0) 30%);
  background-repeat: no-repeat;
}
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem; }
.hero .badge { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: var(--info-bg); color: var(--info); font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; max-width: 700px; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero p.subtitle { color: var(--text-soft); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.hero .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.hero .cta-row button { width: auto; padding: .9rem 1.9rem; margin-top: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; max-width: 900px; margin-top: 3.5rem; width: 100%; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; text-align: left; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .icon { font-size: 1.6rem; margin-bottom: .6rem; }
.feature h3 { font-size: 1rem; margin-bottom: .4rem; }
.feature p { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.footer-note { margin-top: 3rem; font-size: .8rem; color: var(--text-faint); }

/* ===== Student panel ===== */
.wide { max-width: 820px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.top-bar h1 { margin-bottom: 0; }
.top-bar button, .card button { width: auto; margin-top: 0; }
.course-list { list-style: none; }
.course-list li { padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin: .6rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease; }
.course-list li:hover { box-shadow: var(--shadow-md); }
.course-list li button { width: auto; margin: 0; padding: .5rem 1rem; flex-shrink: 0; }
h2 { font-size: 1.05rem; font-weight: 700; color: var(--text-soft); }

/* ===== Shared table (admin) ===== */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th { text-align: left; padding: .6rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 700; }
td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
.status-pending, .status-approved, .status-rejected { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-pending { color: var(--warning); background: var(--warning-bg); }
.status-approved { color: var(--success); background: var(--success-bg); }
.status-rejected { color: var(--danger); background: var(--danger-bg); }
.course-access-list { list-style: none; margin-top: .3rem; }
.course-access-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .82rem; color: var(--text-soft); }
.course-access-list button { width: auto; padding: .3rem .7rem; font-size: .75rem; margin: 0; }

/* ===== Admin dashboard (sidebar layout) ===== */
body.admin-shell { display: block; padding: 0; background: var(--bg); }
.admin-shell-grid { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: var(--surface-alt); border-right: 1px solid var(--border); padding: 1.75rem 1.25rem; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 .5rem 2rem; margin-bottom: 0; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: var(--radius-sm); cursor: pointer; font: 600 .9rem var(--font-body); color: var(--text-soft); margin-bottom: .25rem; }
.nav-item.active { background: var(--info-bg); color: var(--info); }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: .75rem; padding: 1rem .5rem 0; border-top: 1px solid var(--border); margin-top: 1.5rem; }
.sidebar-footer .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-orange); color: #1a1200; display: flex; align-items: center; justify-content: center; font: 800 15px var(--font-display); flex-shrink: 0; }
.sidebar-footer .name { font: 700 .85rem var(--font-display); }
.sidebar-footer .role { font-size: .75rem; color: var(--text-muted); }
.admin-main { padding: 2.25rem 2.75rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-size: 1.6rem; margin: 0; }
.admin-header p { color: var(--text-muted); font-size: .88rem; margin-top: .35rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease; }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .label { color: var(--text-muted); font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }
.stat-card .value { font: 800 1.75rem var(--font-display); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.tab-section { display: none; }
.tab-section.active { display: block; }

/* ===== Public page social footer ===== */
.nav-social { display: flex; align-items: center; gap: .9rem; }
.nav-social a { color: var(--text-soft); display: inline-flex; }
.nav-social a:hover { color: var(--accent); }

/* ===== Logo: AMPPLIFY with a blue A, ACADEMY tucked under the right side ===== */
.logo { position: relative; display: inline-grid; line-height: 1; font-family: var(--font-display); color: #1c1d21; font-size: 18px; white-space: nowrap; }
.logo-word { font-weight: 800; letter-spacing: .02em; }
.logo-a { background: linear-gradient(180deg, #34b3ec 0%, #1a8fd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-sub { justify-self: end; font-weight: 500; font-size: .42em; letter-spacing: .4em; margin: .4em -.4em 0 0; color: inherit; }
.brand .logo { font-size: 22px; }
.sidebar .brand .logo { font-size: 18px; }
.footer-logo .logo { font-size: 28px; }

/* ===== Site footer ===== */
/* Soft peach band that fades in from the page, bold column titles, plain
   links and orange icon badges for the contact rows. */
.site-footer { position: relative; background: linear-gradient(180deg, var(--bg) 0%, #fdeee4 22%, #fbe9e1 100%); padding: 5rem 4rem 1.75rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.35fr; gap: 2.75rem; max-width: 1220px; margin: 0 auto; }
.footer-col h4 { font: 700 1.1rem var(--font-display); color: #1c1d21; margin-bottom: 1.4rem; letter-spacing: 0; text-transform: none; }
.footer-col a { display: block; color: #3d3f47; text-decoration: none; font-size: .95rem; padding: .45rem 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-orange); }
.footer-col p { display: flex; align-items: flex-start; gap: .55rem; color: #3d3f47; font-size: .92rem; padding: .35rem 0; line-height: 1.6; }
.footer-logo { display: inline-block; white-space: nowrap; font: 800 1.6rem var(--font-display); color: #1c1d21; margin-bottom: 1.1rem; letter-spacing: -.01em; }
.footer-logo .a { color: var(--accent); }
.footer-tagline { color: #4a4d57 !important; font-size: 1rem; line-height: 1.7; margin-bottom: 1.9rem; max-width: 360px; padding: 0 !important; }
.footer-brand h4 { font-size: 1.05rem; margin-bottom: 1rem; }
.footer-brand .nav-social { gap: .8rem; }
.footer-brand .nav-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; color: #3d3f47; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: background .15s, color .15s; }
.footer-brand .nav-social a:first-child, .footer-brand .nav-social a:hover { background: var(--accent-orange); color: #fff; }
.footer-contact p.contact-note { font: 400 .95rem/1.7 var(--font-body); color: #3d3f47 !important; display: block !important; margin-bottom: 1.1rem; padding: 0; }
.footer-contact p { align-items: center; gap: .9rem; padding: .5rem 0; color: #1c1d21; font-weight: 700; }
.footer-contact a { display: inline; padding: 0; color: #1c1d21; font-weight: 700; font-size: .95rem; }
.footer-contact .ficon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #f9d9c6; color: var(--accent-orange); display: inline-flex; align-items: center; justify-content: center; }
.footer-contact .ficon svg { width: 18px; height: 18px; }
#footerContactDetails { margin: 0; padding: 0; border: 0; }
.footer-bottom { position: relative; max-width: 1220px; margin: 3.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(28,29,33,.1); text-align: center; }
.footer-bottom p { color: #5b5e68; font-size: .82rem; }
@media (max-width: 760px) {
  .site-footer { padding: 3.5rem 1.25rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; text-align: left; }
  .footer-logo .logo { font-size: 24px; }
  .brand .logo { font-size: 19px; }
  .footer-contact .ficon { width: 36px; height: 36px; }
}

@media (max-width: 860px) {
  .admin-shell-grid { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; gap: .4rem; padding: .85rem 1rem; overflow-x: auto; white-space: nowrap; }
  .sidebar .brand { padding: 0; margin: 0 .5rem 0 0; flex-shrink: 0; }
  .nav-item { flex-shrink: 0; padding: .5rem .8rem; font-size: .82rem; margin-bottom: 0; }
  .sidebar-footer { margin-top: 0; margin-left: auto; border-top: none; padding: 0; flex-shrink: 0; }
  .sidebar-footer .name, .sidebar-footer .role { display: none; }
  .admin-main { padding: 1.5rem 1.25rem; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-header h1 { font-size: 1.3rem; }
  .panel { padding: 1.25rem; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== Password show/hide toggle ===== */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 2.8rem; }
.password-toggle { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); background: none; border: none; width: auto; padding: 0; margin: 0; cursor: pointer; color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.password-toggle:hover { color: var(--text-soft); }

/* Log in sits beside the enrol button; both hide behind the burger on phones. */
.cnav-login { width: auto; margin: 0; padding: .6rem 1.15rem; font-size: .88rem; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.cnav-login:hover { border-color: var(--accent); color: var(--accent); }

/* Sign-in panel: plain selling points instead of the old mascot picture. */
.brand-points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.brand-points li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.6; opacity: .92; }
.brand-points li::before { content: '\2713'; position: absolute; left: 0; font-weight: 700; color: var(--accent-orange); }
.brand-foot { margin-top: 2.5rem; font-size: .8rem; opacity: .65; line-height: 1.6; }

/* Google sign-in button on the login screen. */
.or-line { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0; color: var(--text-muted); font-size: .8rem; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin: 0; background: #fff; color: #1c1d21; border: 1px solid var(--border-strong); font-weight: 600; }
.google-btn:hover { border-color: var(--accent); }
.google-hint { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin: .6rem 0 0; }
