/* =====================================================================
   GWPTC E-School -- public site & portal theme
   A colourful, animated layer on top of the institutional app.css.
   Used by: home page, registration/admission, student portal, sign-in.
   ===================================================================== */

:root {
    --brand-1: #0f766e;   /* teal   */
    --brand-2: #0ea5e9;   /* sky    */
    --brand-3: #7c3aed;   /* violet */
    --brand-4: #f59e0b;   /* amber  */
    --brand-5: #ef4444;   /* red    */
    --brand-6: #10b981;   /* emerald*/
    --ink: #0f1e33;
    --ink-soft: #475569;
    --line: #e6eaf2;
    --site-radius: 18px;
    --site-shadow: 0 18px 40px -24px rgba(15, 30, 51, .45);
    --site-shadow-lg: 0 30px 60px -30px rgba(15, 30, 51, .5);
}

/* ------------------------------------------------------------------ */
/* Generic utilities                                                   */
/* ------------------------------------------------------------------ */
.text-gradient {
    background: linear-gradient(100deg, var(--brand-4), var(--brand-5) 40%, var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.grad-teal   { background-image: linear-gradient(135deg, #0f766e, #14b8a6); }
.grad-blue   { background-image: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.grad-purple { background-image: linear-gradient(135deg, #6d28d9, #a855f7); }
.grad-amber  { background-image: linear-gradient(135deg, #b45309, #f59e0b); }
.grad-green  { background-image: linear-gradient(135deg, #047857, #22c55e); }
.grad-rose   { background-image: linear-gradient(135deg, #be123c, #fb7185); }
.grad-cyan   { background-image: linear-gradient(135deg, #0e7490, #06b6d4); }
.grad-slate  { background-image: linear-gradient(135deg, #334155, #64748b); }

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

@keyframes gwpFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
@keyframes gwpPulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50%      { opacity: .85; transform: scale(1.08); }
}
@keyframes gwpBlink {
    0%, 100% { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); }
    50%      { background: linear-gradient(135deg, #7f1d1d, #b91c1c); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}
@keyframes gwpGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gwpFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Public navigation                                                   */
/* ------------------------------------------------------------------ */
.site-shell { background: #f7f9fc; }
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(120deg, rgba(15, 30, 51, .96), rgba(15, 118, 110, .94));
    backdrop-filter: blur(8px);
    transition: box-shadow .25s ease, padding .25s ease;
}
.site-nav.is-scrolled { box-shadow: 0 12px 30px -18px rgba(2, 6, 23, .8); }
.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
}
.site-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.site-brand-logo { height: 42px; width: auto; border-radius: 10px; background: #fff; padding: 3px; }
.site-brand-mark {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-4), var(--brand-5));
    color: #fff;
    font-size: 1.3rem;
}
.site-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.site-brand-text strong { font-size: 1.05rem; letter-spacing: .02em; }
.site-brand-text small { font-size: .68rem; text-transform: uppercase; letter-spacing: .22em; color: #a7f3d0; }

.site-nav-links { display: flex; align-items: center; gap: .35rem; }
.site-nav-links > a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    padding: .5rem .7rem;
    border-radius: 10px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-nav-links > a:hover { color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.site-nav-cta { display: flex; gap: .4rem; margin-left: .5rem; }

.site-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, .14);
    border: 0;
    color: #fff;
    font-size: 1.4rem;
    border-radius: 10px;
    padding: .15rem .55rem;
}

@media (max-width: 991.98px) {
    .site-nav-toggle { display: inline-flex; }
    .site-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        background: rgba(15, 23, 42, .98);
        padding: .75rem 1rem 1rem;
        box-shadow: 0 24px 40px -24px rgba(2, 6, 23, .9);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .site-nav-open .site-nav-links { opacity: 1; transform: none; pointer-events: auto; }
    .site-nav-cta { flex-direction: column; margin: .4rem 0 0; }
    .site-nav-cta .btn { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6.5rem);
    background: linear-gradient(120deg, #0b1220, #0f766e 45%, #0e7490 75%, #6d28d9);
    background-size: 200% 200%;
    animation: gwpGradient 18s ease infinite;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .5;
    animation: gwpFloat 9s ease-in-out infinite;
}
.hero-blob-1 { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, .8), transparent 70%); top: -120px; right: -80px; }
.hero-blob-2 { width: 320px; height: 320px; background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, .8), transparent 70%); bottom: -120px; left: -60px; animation-delay: 2s; }
.hero-blob-3 { width: 240px; height: 240px; background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, .8), transparent 70%); top: 40%; left: 45%; animation-delay: 4s; }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: .4rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}
.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 46rem; }
.hero .btn-warning { color: #422006; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn-hero-primary {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border: 1px solid rgba(34, 197, 94, .9);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .3), 0 2px 6px rgba(0, 0, 0, .1);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.btn-hero-primary:hover,
.btn-hero-primary:focus {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(22, 163, 74, .45), 0 3px 10px rgba(0, 0, 0, .15);
}
.btn-hero-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 12px rgba(22, 163, 74, .35);
}
.btn-hero-ghost {
    background: rgba(255, 255, 255, .12);
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}
.btn-hero-ghost:hover,
.btn-hero-ghost:focus {
    background: rgba(255, 255, 255, .95);
    color: #0f1e33;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 255, 255, .35);
}
.btn-hero-ghost:active {
    transform: translateY(0) scale(0.98);
}

.hero-countdown {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.6rem;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    font-weight: 600;
}
.hero-countdown .js-days { font-size: 1.35rem; }
.hero-countdown.is-urgent {
    animation: gwpBlink 1.1s steps(1, end) infinite;
    border-color: rgba(255, 255, 255, .45);
}
.hero-countdown.is-paused { opacity: .82; font-weight: 500; }

.hero-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    padding: 1.4rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--site-shadow-lg);
    animation: gwpFloat 7s ease-in-out infinite;
}
.hero-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.hero-card-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-4), var(--brand-5));
    font-size: 1.4rem;
}
.hero-card-title { font-weight: 700; }
.hero-card-sub { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hero-stat {
    background: rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: .85rem 1rem;
    text-align: center;
}
.hero-stat-num { display: block; font-size: 1.9rem; font-weight: 800; }
.hero-stat:nth-child(1) .hero-stat-num { color: #fde68a; }
.hero-stat:nth-child(2) .hero-stat-num { color: #a7f3d0; }
.hero-stat:nth-child(3) .hero-stat-num { color: #bae6fd; }
.hero-stat:nth-child(4) .hero-stat-num { color: #e9d5ff; }
.hero-stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .8); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; }
.hero-wave svg { display: block; width: 100%; height: 70px; fill: #f7f9fc; }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-1);
    margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.section-sub { color: var(--ink-soft); }
.lead-text { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; }

/* Quick menu */
.section-quick { background: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.quick-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--site-radius);
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 10px 24px -20px rgba(15, 30, 51, .5);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--site-shadow); border-color: transparent; color: var(--ink); }
.quick-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 15px;
    color: #fff;
    font-size: 1.4rem;
}
.quick-body { display: flex; flex-direction: column; flex: 1; }
.quick-title { font-weight: 700; }
.quick-desc { font-size: .85rem; color: var(--ink-soft); }
.quick-arrow { color: var(--brand-1); transition: transform .25s ease; }
.quick-card:hover .quick-arrow { transform: translateX(4px); }

/* About */
.section-about { background: linear-gradient(180deg, #f7f9fc, #eef6f5); }
.program-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.program-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
}
.program-chip i { color: var(--brand-1); }
.program-chip em { font-style: normal; color: var(--ink-soft); font-weight: 500; font-size: .78rem; }
.about-cards { display: grid; gap: 1.1rem; }
.about-card {
    color: #fff;
    border-radius: var(--site-radius);
    padding: 1.6rem;
    box-shadow: var(--site-shadow);
}
.about-card i { font-size: 1.9rem; }
.about-card h3 { font-size: 1.25rem; font-weight: 700; margin: .6rem 0 .4rem; }
.about-card p { margin: 0; color: rgba(255, 255, 255, .92); }

/* Departments */
.section-departments { background: #fff; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.dept-card {
    position: relative;
    padding: 1.5rem 1.3rem;
    border-radius: var(--site-radius);
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.dept-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
}
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--site-shadow); }
.dept-card-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--brand-1, #0f766e);
    background-image: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #fff; font-size: 1.3rem;
    margin-bottom: .8rem;
}
.dept-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.dept-card p { color: var(--ink-soft); font-size: .9rem; }
.dept-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand-1);
    background: #e7f6f4;
    padding: .3rem .7rem;
    border-radius: 999px;
    margin-top: .4rem;
}

/* Criteria */
.section-criteria { background: linear-gradient(180deg, #eef6f5, #f7f9fc); }
.criteria-card {
    background: #fff;
    border-radius: var(--site-radius);
    padding: 1.6rem;
    box-shadow: var(--site-shadow);
    border: 1px solid var(--line);
}
.criteria-status {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    color: #fff;
    margin-bottom: 1.2rem;
}
.criteria-status.is-open { background: linear-gradient(135deg, #047857, #10b981); }
.criteria-status.is-closed { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.criteria-status i { font-size: 1.6rem; }
.criteria-status strong { display: block; }
.criteria-status span { font-size: .85rem; opacity: .9; }
.criteria-list { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.criteria-list li {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: .6rem;
    padding: .7rem 0;
    border-bottom: 1px dashed var(--line);
}
.criteria-list li:last-child { border-bottom: 0; }
.criteria-list i { color: var(--brand-1); font-size: 1.15rem; }
.criteria-list span { color: var(--ink-soft); }
.criteria-list strong { color: var(--ink); text-align: right; }

/* Admission steps */
.section-admission {
    color: #fff;
    background: linear-gradient(120deg, #0b1220, #16283f 55%, #1d3552);
}
.section-admission .section-title { color: #fff; }
.section-admission .section-sub { color: rgba(255, 255, 255, .75); }
.section-admission .section-kicker { color: #5eead4; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.step {
    position: relative;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--site-radius);
    padding: 1.6rem 1.3rem;
    transition: transform .25s ease, background .25s ease;
}
.step:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .12); }
.step-num {
    position: absolute;
    top: 1rem; right: 1.1rem;
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .12);
}
.step-icon {
    display: grid; place-items: center;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-4), var(--brand-5));
    color: #fff; font-size: 1.4rem;
    margin-bottom: .8rem;
}
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { color: rgba(255, 255, 255, .78); font-size: .9rem; margin: 0; }
.admission-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.4rem;
    padding: 1.6rem 1.8rem;
    border-radius: var(--site-radius);
    background: linear-gradient(120deg, rgba(15, 118, 110, .55), rgba(124, 58, 237, .55));
    border: 1px solid rgba(255, 255, 255, .18);
}
.admission-cta h3 { font-weight: 700; margin: 0 0 .2rem; }

/* Gallery */
.section-gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gallery-item {
    margin: 0;
    border-radius: var(--site-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--site-shadow);
    background: #0b1220;
}
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.4rem 1rem .8rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .85));
}
.gallery-item figcaption strong { display: block; }
.gallery-item figcaption span { font-size: .82rem; opacity: .85; }
.gallery-empty {
    display: grid;
    place-items: center;
    gap: .6rem;
    text-align: center;
    padding: 3rem;
    border: 2px dashed var(--line);
    border-radius: var(--site-radius);
    color: var(--ink-soft);
}
.gallery-empty i { font-size: 2.4rem; color: var(--brand-2); }

/* Contact */
.section-contact { background: linear-gradient(180deg, #f7f9fc, #eef6f5); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; color: #fff; }
.contact-list i { color: #fde68a; }
.contact-cta-wrap {
    background: linear-gradient(120deg, #0f766e, #0ea5e9);
    border-radius: var(--site-radius);
    padding: 1.8rem;
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
    background: linear-gradient(180deg, #0b1220, #0f1e33);
    color: #cbd5e1;
    padding: 3rem 0 1.2rem;
}
.site-footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; font-size: 1.1rem; }
.site-footer-brand i { color: #5eead4; font-size: 1.5rem; }
.site-footer-head { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: .9rem; }
.site-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer-links a { color: #cbd5e1; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.site-footer-links a:hover { color: #5eead4; padding-left: 3px; }
.site-footer-links li { display: flex; align-items: center; gap: .5rem; }
.site-footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
    color: #94a3b8;
}

/* ------------------------------------------------------------------ */
/* Public / auth shells: colour the shared pages                       */
/* ------------------------------------------------------------------ */
.public-shell, .auth-shell { background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(124, 58, 237, .12), transparent 60%),
    #f7f9fc; }

.public-topbar {
    background: linear-gradient(120deg, #0b1220, #0f766e);
    color: #fff;
    box-shadow: 0 12px 30px -20px rgba(2, 6, 23, .8);
}
.public-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.public-brand .site-brand-text strong { color: #fff; }
.public-topbar .btn-outline-secondary {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, .35);
}
.public-topbar .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.public-shell .card, .auth-shell .card {
    border: 1px solid var(--line);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    overflow: hidden;
    animation: gwpFadeUp .5s ease both;
}
.public-shell .card-header, .auth-shell .card-header {
    background: linear-gradient(120deg, #0f766e, #0ea5e9);
    color: #fff;
    font-weight: 600;
    border-bottom: 0;
    padding: .85rem 1.25rem;
}
.public-shell .card-header i, .auth-shell .card-header i { color: #fde68a; }

.public-shell .form-control, .public-shell .form-select,
.auth-shell .form-control, .auth-shell .form-select {
    border-radius: 12px;
    border-color: #d7deea;
    padding: .6rem .8rem;
}
.public-shell .form-control:focus, .public-shell .form-select:focus,
.auth-shell .form-control:focus, .auth-shell .form-select:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 .2rem rgba(14, 165, 233, .18);
}
.public-shell .btn, .auth-shell .btn { border-radius: 12px; font-weight: 600; }
.public-shell .btn-primary, .auth-shell .btn-primary {
    background: linear-gradient(120deg, #0f766e, #0ea5e9);
    border: 0;
}
.public-shell .btn-primary:hover, .auth-shell .btn-primary:hover {
    background: linear-gradient(120deg, #0d9488, #0284c7);
}
.public-shell .btn-success { background: linear-gradient(120deg, #047857, #22c55e); border: 0; }

/* ------------------------------------------------------------------ */
/* Notched-outline fields (registration form)                          */
/* The label sits inside a notch cut into the control's top border, so */
/* each field needs no separate label row and the form is shorter.     */
/* ------------------------------------------------------------------ */
#register-form .field-outlined { position: relative; }
#register-form .field-outlined > .form-label {
    position: absolute;
    top: 0;
    left: .85rem;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 .4rem;
    background: #fff;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
    max-width: calc(100% - 1.6rem);
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
    pointer-events: none;
}
#register-form .field-outlined > .form-control,
#register-form .field-outlined > .form-select {
    padding-top: .95rem;
    padding-bottom: .4rem;
}
#register-form .field-outlined > .form-control:focus,
#register-form .field-outlined > .form-select:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 .2rem rgba(14, 165, 233, .18);
}

/* ------------------------------------------------------------------ */
/* Terms agreement checkbox — outer glow so it is easy to spot         */
/* ------------------------------------------------------------------ */
#register-form #terms_accepted.form-check-input {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 .18rem rgba(14, 165, 233, .35);
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
#register-form #terms_accepted.form-check-input:hover {
    box-shadow: 0 0 0 .22rem rgba(14, 165, 233, .42);
}
#register-form #terms_accepted.form-check-input:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 .25rem rgba(14, 165, 233, .5);
}
#register-form #terms_accepted.form-check-input:checked {
    background-color: var(--brand-2);
    border-color: var(--brand-2);
    box-shadow: 0 0 0 .2rem rgba(14, 165, 233, .4);
}
#register-form #terms_accepted.form-check-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .35);
}

/* ------------------------------------------------------------------ */
/* Countdown banner used on registration & management pages            */
/* ------------------------------------------------------------------ */
.countdown-banner {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1.15rem;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(120deg, #0f766e, #0ea5e9);
    box-shadow: var(--site-shadow);
    margin-bottom: 1rem;
}
.countdown-banner i { font-size: 1.3rem; }
.countdown-banner.is-urgent { animation: gwpBlink 1.1s steps(1, end) infinite; }
.countdown-banner.is-paused { background: linear-gradient(120deg, #475569, #64748b); }

/* Student portal flourishes */
.portal-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--site-radius);
    padding: 1.8rem;
    color: #fff;
    background: linear-gradient(120deg, #0b1220, #0f766e 60%, #6d28d9);
    background-size: 200% 200%;
    animation: gwpGradient 16s ease infinite;
    box-shadow: var(--site-shadow);
}
.portal-hero h1 { font-weight: 800; }
.portal-stat {
    background: rgba(255, 255, 255, .14);
    border-radius: 14px;
    padding: .9rem 1rem;
    text-align: center;
}
.portal-stat .num { display: block; font-size: 1.6rem; font-weight: 800; }
.portal-stat .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.portal-tile {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: transform .25s ease, box-shadow .25s ease;
}
.portal-tile:hover { transform: translateY(-4px); box-shadow: var(--site-shadow); color: var(--ink); }
.portal-tile .tile-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    color: #fff; font-size: 1.3rem;
}

/* Credential reveal card (portal sign-in details) */
.credential-card {
    background: linear-gradient(120deg, #0b1220, #0f766e);
    color: #fff;
    border-radius: var(--site-radius);
    padding: 1.4rem;
}
.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: .7rem 1rem;
    margin-top: .6rem;
}
.credential-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.credential-row .value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .03em; }

/* Auth layout tweaks */
.auth-aside { background: linear-gradient(150deg, #0b1220, #0f766e 55%, #6d28d9); }
.auth-shell .btn-teal { background: linear-gradient(120deg, #0f766e, #0ea5e9); border: 0; }

@media (max-width: 575.98px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .admission-cta { flex-direction: column; align-items: flex-start; }
    .criteria-list li { grid-template-columns: 26px 1fr; }
    .criteria-list strong { grid-column: 2; text-align: left; }
}

/* Former Surveying occupations, grouped last under Construction. */
.survey-dept-badge {
    display: inline-block;
    margin: 0 0 .25rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
    animation: surveyDeptBlink 1.6s ease-in-out infinite;
}
@keyframes surveyDeptBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}
.survey-dept-badge.d-none { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .survey-dept-badge { animation: none; }
}
