/* =========================================================
   Premium Login UI  —  custom redesign
   Scope: login.php / index.php
   No backend, no JS, no PHP changed. Pure visual polish.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-1: #0b1c4d;
    --brand-2: #19b0dc;
    --brand-deep: #060f33;
    --brand-glow: rgba(28, 181, 224, .35);
    --ink: #0f172a;
    --muted: #6b7280;
    --line: rgba(15, 23, 42, .08);
    --card-bg: rgba(255, 255, 255, .96);
    --shadow-lg: 0 30px 80px -20px rgba(2, 13, 81, .45),
                 0 10px 30px -10px rgba(2, 13, 81, .25);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #f5f7fb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Full-bleed background ===== */
.login-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background:
        radial-gradient(1100px 700px at 85% 20%, rgba(25, 176, 220, .35), transparent 60%),
        radial-gradient(900px 600px at 10% 90%, rgba(11, 28, 77, .55), transparent 60%),
        linear-gradient(135deg, #060f33 0%, #0b1c4d 45%, #0e3b73 100%);
    overflow: hidden;
    isolation: isolate;
}

.login-section::before {
    /* Soft animated orbs for depth */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent) 20% 30% / 280px 280px no-repeat,
        radial-gradient(closest-side, rgba(28, 181, 224, .18), transparent) 80% 80% / 360px 360px no-repeat,
        radial-gradient(closest-side, rgba(255, 255, 255, .06), transparent) 60% 10% / 220px 220px no-repeat;
    pointer-events: none;
    z-index: -1;
    animation: floatOrbs 18s ease-in-out infinite alternate;
}

.login-section::after {
    /* Subtle grid pattern */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
    z-index: -1;
}

@keyframes floatOrbs {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-30px, 20px, 0); }
}

/* ===== Container ===== */
.login-section__container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 32px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: 100vh;
}

/* ===== Left hero text ===== */
.login-section__text {
    color: #fff;
    position: static;
    width: auto;
    display: block;
    animation: fadeUp .8s ease both;
}

.login-section__text::before {
    content: "Trusted Government Service Portal";
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: #cfe9ff;
}

.login-section__main-heading {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    padding: 0;
    margin: 0 0 18px;
}

.login-section__main-heading--bold {
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #8fd9ff 60%, #19b0dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-section__desc {
    color: rgba(255, 255, 255, .78);
    font-size: 1.02rem;
    line-height: 1.65;
    padding: 0;
    margin: 0 0 28px;
    max-width: 520px;
    text-align: left;
    background: transparent;
}

.login-section__desc--bold {
    color: #fff;
    font-weight: 700;
}

/* Feature pills under hero copy */
.login-section__text::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin-top: 10px;
    background: linear-gradient(90deg, #19b0dc, #ffffff);
    opacity: .8;
}

/* ===== Login card ===== */
.login-section__card {
    position: static;
    margin: 0;
    padding: 38px 36px 30px;
    width: 100%;
    max-width: 440px;
    justify-self: end;
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: var(--shadow-lg);
    display: block;
    animation: fadeUp .8s .12s ease both;
}

.login-section__card img {
    width: auto;
    height: auto;
}

/* Card header (auto-injected via CSS — purely cosmetic) */
.login-section__card form::before {
    content: "Sign in to your account";
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
    margin: 0 0 6px;
}

.login-section__card form::after {
    content: "Access your dashboard, applications & wallet.";
    display: block;
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 22px;
}


.login-section__card form {
    width: 100%;
}

/* Marquee — keep the existing element but style it as a pill banner */
.login-section__card .main-content marquee,
.login-section__card marquee {
    display: block;
    background: linear-gradient(90deg, rgba(25, 176, 220, .12), rgba(11, 28, 77, .08));
    border: 1px solid rgba(25, 176, 220, .25);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0 0 20px;
}
.login-section__card .main-content marquee h4,
.login-section__card marquee h4 {
    margin: 0 !important;
    color: var(--brand-1) !important;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.login-section__card .main-content marquee h4 strong,
.login-section__card marquee h4 strong {
    color: var(--brand-2);
}

/* ===== Form fields ===== */
.login-section__card .form-floating {
    position: relative;
    margin-bottom: 16px;
}

.login-section__card .form-floating label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: .01em;
    margin: 0 0 8px;
    text-transform: none;
}

.login-section__card .form-control {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fbfcff;
    font-size: .98rem;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    outline: none;
}

.login-section__card .form-control::placeholder {
    color: #9aa3b2;
    font-weight: 400;
}

.login-section__card .form-control:hover {
    border-color: rgba(25, 176, 220, .45);
    background: #fff;
}

.login-section__card .form-control:focus {
    border-color: var(--brand-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 176, 220, .15);
}

/* Add input icons via pseudo elements on the floating wrapper */
.login-section__card .form-floating::before {
    position: absolute;
    left: 14px;
    top: 38px;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    opacity: .65;
    content: "";
    pointer-events: none;
}

.login-section__card .form-floating:nth-of-type(1)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1c4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}

.login-section__card .form-floating:nth-of-type(2)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1c4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
}

/* The submit-button form-floating shouldn't show an icon */
.login-section__card .form-floating:last-of-type::before {
    display: none;
}

/* ===== Premium login button ===== */
.button_btn__1dRFj {
    position: relative;
    width: 100%;
    height: 52px !important;
    border: none;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700 !important;
    font-size: 1rem;
    letter-spacing: .02em;
    text-transform: none;
    color: #fff !important;
    cursor: pointer;
    background: linear-gradient(135deg, #0b1c4d 0%, #1cb5e0 100%) !important;
    background-image: linear-gradient(135deg, #0b1c4d 0%, #1cb5e0 100%) !important;
    box-shadow:
        0 10px 24px -8px rgba(11, 28, 77, .55),
        0 4px 12px -4px rgba(25, 176, 220, .55),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    margin-top: 6px;
}

.button_btn__1dRFj:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
        0 16px 32px -8px rgba(11, 28, 77, .6),
        0 8px 16px -4px rgba(25, 176, 220, .65),
        inset 0 1px 0 rgba(255, 255, 255, .3);
}

.button_btn__1dRFj:active {
    transform: translateY(0);
    filter: brightness(.96);
}

.button_btn__1dRFj:focus-visible {
    outline: 3px solid rgba(25, 176, 220, .45);
    outline-offset: 2px;
}

/* Footnote under card */
.login-section__card form > .row::after,
.login-section__card form::part(footer) {
    content: "";
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .login-section__container {
        grid-template-columns: 1fr;
        padding: 120px 24px 48px;
        gap: 36px;
        text-align: center;
    }
    .login-section__text { text-align: center; }
    .login-section__desc { margin-left: auto; margin-right: auto; }
    .login-section__text::after { margin-left: auto; margin-right: auto; }
    .login-section__card { justify-self: center; }
}

@media (max-width: 576px) {
    .login-section__container {
        padding: 100px 16px 32px;
    }
    .login-section__card {
        padding: 28px 22px 22px;
        border-radius: 16px;
    }
    .login-section__main-heading {
        font-size: 2rem;
    }
    .login-section__desc {
        font-size: .95rem;
    }
    .login-section__card .form-control {
        height: 48px;
    }
    .button_btn__1dRFj {
        height: 50px !important;
    }
}

/* Small visual tweak for any leftover Bootstrap row gaps */
.login-section__card .row.g-3 { margin: 0; }
.login-section__card .row.g-3 > [class*="col-"] { padding: 0; }

/* =========================================================
   Premium login animations
   ========================================================= */

@keyframes loginShine {
    0%   { background-position: -120% 0; opacity: 0; }
    25%  { opacity: 1; }
    100% { background-position: 220% 0; opacity: 0; }
}

@keyframes loginButtonPulse {
    0%, 100% {
        box-shadow:
            0 10px 24px -8px rgba(11, 28, 77, .55),
            0 4px 12px -4px rgba(25, 176, 220, .55),
            inset 0 1px 0 rgba(255, 255, 255, .25);
    }
    50% {
        box-shadow:
            0 14px 32px -8px rgba(11, 28, 77, .6),
            0 6px 18px -4px rgba(25, 176, 220, .8),
            inset 0 1px 0 rgba(255, 255, 255, .3);
    }
}

@keyframes loginIconBounce {
    0%, 100% { transform: translateY(0); opacity: .65; }
    50%      { transform: translateY(-2px); opacity: .85; }
}

@keyframes loginHeadingShine {
    0%, 90%, 100% { background-position: 0% 0; }
    50%           { background-position: 100% 0; }
}

@keyframes loginOrbSlow {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(40px, -20px, 0) scale(1.05); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Card gets a one-time shine sweep on load */
.login-section__card {
    position: relative;
    overflow: hidden;
}
.login-section__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(25, 176, 220, .18) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    border-radius: inherit;
    animation: loginShine 1.6s ease 1.2s 1 both;
    z-index: 1;
}
.login-section__card > * { position: relative; z-index: 2; }

/* Heading gets a soft gradient travel */
.login-section__main-heading--bold {
    background: linear-gradient(90deg, #ffffff 0%, #8fd9ff 30%, #19b0dc 50%, #8fd9ff 70%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loginHeadingShine 6s ease-in-out infinite;
}

/* Button: gentle resting pulse + sheen on hover */
.button_btn__1dRFj {
    animation: loginButtonPulse 3.2s ease-in-out infinite;
    background-size: 200% 200% !important;
    overflow: hidden;
    position: relative;
}

.button_btn__1dRFj::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: background-position .65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.button_btn__1dRFj:hover {
    animation: none;
    background-position: 100% 0 !important;
    transition: transform .15s ease, filter .2s ease, background-position .6s ease, box-shadow .2s ease !important;
}

.button_btn__1dRFj:hover::before {
    background-position: 200% 0;
}

/* Input icons gently float on focus */
.login-section__card .form-floating:focus-within::before {
    animation: loginIconBounce 1.4s ease-in-out infinite;
    opacity: .9 !important;
}

/* Inputs lift very slightly on focus */
.login-section__card .form-control {
    transition: border-color .18s ease,
                box-shadow .18s ease,
                background .18s ease,
                transform .18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.login-section__card .form-control:focus {
    transform: translateY(-1px);
}

/* Slow down the orbs and add a second drift to feel alive */
.login-section::before {
    animation: loginOrbSlow 22s ease-in-out infinite alternate;
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
    .login-section__card::after,
    .button_btn__1dRFj,
    .button_btn__1dRFj::before,
    .login-section__main-heading--bold,
    .login-section::before,
    .login-section__card .form-floating::before {
        animation: none !important;
    }
}
