:root {
    --blue-900: #123042;
    --blue-800: #1d506b;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #357c9d;
    --blue-400: #60a5fa;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --slate-900: #0f172a;
    --slate-600: #475569;
    --border-soft: rgba(15, 23, 42, 0.08);
    --border-blue: rgba(37, 99, 235, 0.10);
    --shadow-soft: 0 4px 10px rgba(15, 23, 42, 0.05), 0 16px 35px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 8px 20px rgba(15, 23, 42, 0.09), 0 24px 50px rgba(37, 99, 235, 0.08);
    --radius-md: 0.85rem;
    --radius-lg: 1.25rem;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.modern-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow: hidden;
    background: radial-gradient( circle at 15% 20%, rgba(56, 189, 248, 0.20), transparent 34% ), radial-gradient( circle at 85% 80%, rgba(59, 130, 246, 0.16), transparent 40% ), linear-gradient( 135deg, #eef4ff 0%, #f7faff 45%, #eef8ff 100% );
}


/* =========================================================
   LOGIN BACKGROUND SHAPES
========================================================= */

.modern-login__shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}


/* Grid */

.modern-login__shape--grid {
    width: 14rem;
    height: 14rem;
    top: 3rem;
    left: 2rem;
    border-radius: 1.2rem;
    background-image: linear-gradient( rgba(37, 99, 235, 0.14) 1px, transparent 1px ), linear-gradient( 90deg, rgba(37, 99, 235, 0.14) 1px, transparent 1px );
    background-size: 16px 16px;
    transform: rotate(-8deg);
    opacity: 0.55;
}


/* Diamond */

.modern-login__shape--diamond {
    width: 9rem;
    height: 9rem;
    right: 8%;
    top: 12%;
    border: 1px solid rgba(14, 165, 233, 0.32);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transform: rotate(45deg);
}


/* Ring */

.modern-login__shape--ring {
    width: 13rem;
    height: 13rem;
    right: -3rem;
    bottom: -2rem;
    border-radius: 50%;
    border: 1rem solid rgba(37, 99, 235, 0.11);
    box-shadow: inset 0 0 0 0.35rem rgba(14, 165, 233, 0.08);
}


/* =========================================================
   LOGIN CARD
========================================================= */

.modern-login__card {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-medium);
}


/* =========================================================
   LOGIN LEFT SIDE
========================================================= */

.modern-login__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem;
    text-align: center;
    color: #ffffff;
    background: linear-gradient( 145deg, #1d4ed8 0%, #2563eb 48%, #0ea5e9 100% );
}


    /* subtle inner decoration */

    .modern-login__aside::before {
        content: "";
        position: absolute;
        width: 15rem;
        height: 15rem;
        top: -8rem;
        right: -7rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        pointer-events: none;
    }


    .modern-login__aside::after {
        content: "";
        position: absolute;
        width: 11rem;
        height: 11rem;
        left: -6rem;
        bottom: -5rem;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.14);
        pointer-events: none;
    }


/* =========================================================
   LOGIN LOGO
========================================================= */

.modern-login__logo {
    position: relative;
    z-index: 1;
    width: clamp(180px, 22vw, 250px);
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.25rem;
}


/* =========================================================
   LOGIN BRAND BADGE
========================================================= */

.modern-login__brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: center;
    align-items: center;
    padding: 0.38rem 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* =========================================================
   LOGIN ASIDE TYPOGRAPHY
========================================================= */

.modern-login__aside h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}


.modern-login__aside p {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin: 0 auto 1.35rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.65;
}


.modern-login__aside ul {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    justify-items: center;
}


.modern-login__aside li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.94rem;
}


/* =========================================================
   LOGIN FORM AREA
========================================================= */

.modern-login__form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    background: linear-gradient( 180deg, #ffffff 0%, #f8fbff 100% );
}


    .modern-login__form-wrap h2 {
        margin-bottom: 0.5rem;
        color: var(--slate-900);
        font-weight: 700;
        letter-spacing: -0.02em;
    }


/* =========================================================
   LOGIN FORM CONTROLS
========================================================= */

.modern-login__form .form-control {
    min-height: 48px;
    border: 1px solid #dbe4f5;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}


    .modern-login__form .form-control:hover {
        border-color: #b8c9e5;
    }


    .modern-login__form .form-control:focus {
        border-color: var(--blue-400);
        background: #ffffff;
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
    }


/* =========================================================
   LOGIN BUTTON
========================================================= */

.modern-login__btn {
    position: relative;
    min-height: 48px;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient( 135deg, #2563eb 0%, #168ed9 52%, #0ea5e9 100% );
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}


    .modern-login__btn:hover,
    .modern-login__btn:focus {
        color: #ffffff;
        background: linear-gradient( 135deg, #1d4ed8 0%, #167fc6 55%, #0284c7 100% );
        box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);
        transform: translateY(-1px);
    }


    .modern-login__btn:active {
        transform: translateY(0);
    }


/* =========================================================
   LOGIN LINKS
========================================================= */

.modern-login__links a {
    color: var(--blue-700);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}


    .modern-login__links a:hover {
        color: var(--sky-600);
        text-decoration: underline;
    }


/* =========================================================
   HOME INTRO
========================================================= */

.home-intro {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--slate-900);
    background: linear-gradient( 160deg, #f8fbff 0%, #eff6ff 50%, #ffffff 100% );
}


/* =========================================================
   HOME HERO
========================================================= */

.home-intro__hero {
    position: relative;
    z-index: 1;
    padding-bottom: 2.5rem !important;
    text-align: center;
}


.home-intro__logo {
    width: clamp(140px, 20vw, 220px);
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto .1rem;
}


/* =========================================================
   HOME BADGE
========================================================= */

.home-intro__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    color: var(--blue-700);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(4px);
    font-size: 0.82rem;
    font-weight: 600;
}


/* =========================================================
   HOME CARDS
========================================================= */

.home-intro__card {
    position: relative;
    height: 100%;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 1rem;
    background: linear-gradient( 180deg, #ffffff 0%, #fbfdff 100% );
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}


    .home-intro__card:hover {
        transform: translateY(-4px);
        border-color: rgba(37, 99, 235, 0.15);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07), 0 20px 38px rgba(37, 99, 235, 0.08);
    }


    .home-intro__card h2 {
        margin: 0.55rem 0 0.45rem;
        color: #172033;
        font-size: 1.05rem;
        font-weight: 650;
    }


    .home-intro__card p {
        margin: 0;
        color: var(--slate-600);
        font-size: 0.92rem;
        line-height: 1.6;
    }


/* =========================================================
   HOME CARD ICON
========================================================= */

.home-intro__icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: var(--blue-600);
    background: linear-gradient( 145deg, rgba(37, 99, 235, 0.10), rgba(14, 165, 233, 0.06) );
    border: 1px solid rgba(37, 99, 235, 0.08);
    font-size: 1.2rem;
    margin: 0 auto;
}


/* =========================================================
   HOME BACKGROUND SHAPES
========================================================= */

.home-intro__bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.28;
    pointer-events: none;
}


.home-intro__bg-shape--one {
    width: 20rem;
    height: 20rem;
    left: -7rem;
    top: -5rem;
    background: radial-gradient( circle at 40% 40%, #60a5fa, #2563eb );
}


.home-intro__bg-shape--two {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    bottom: -5rem;
    background: radial-gradient( circle at 40% 40%, #5eead4, #0ea5e9 );
}


/* =========================================================
   GENERIC SHADOW
========================================================= */

.bx-shdw {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   ANIMATED BUTTON
========================================================= */

.btn-animated {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


    .btn-animated::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient( 120deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.05) 100% );
        transform: skewX(-20deg);
    }


    .btn-animated:hover::after {
        animation: sheen 1.1s forwards;
    }


@keyframes sheen {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}


/* =========================================================
   GLOW BUTTON
========================================================= */

.btn-glow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}


    .btn-glow:hover:not(:disabled) {
        transform: translateY(-2px);
    }


    .btn-glow:active:not(:disabled) {
        transform: translateY(0);
    }


/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {
    width: 100%;
    padding: 80px 20px;
}


.hero-content {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}


/* =========================================================
   HERO TITLE 3D
========================================================= */

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}


.hero-title-3d {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    background: linear-gradient( 135deg, #123042 0%, #1d506b 30%, #357c9d 55%, #69abc4 72%, #1d506b 100% );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95)) drop-shadow(0 2px 0 rgba(88, 145, 137, 0.28)) drop-shadow(0 3px 0 rgba(58, 111, 105, 0.20)) drop-shadow(0 5px 3px rgba(18, 61, 66, 0.11)) drop-shadow(0 12px 18px rgba(18, 61, 66, 0.10));
    transition: transform 0.35s ease, filter 0.35s ease;
}


/* Hero underline */

.hero-title-wrapper::after {
    content: "";
    position: absolute;
    width: 85px;
    height: 4px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 50px;
    background: linear-gradient( 90deg, transparent, #69abc4, #357c9d, #69abc4, transparent );
    box-shadow: 0 4px 12px rgba(53, 124, 157, 0.18);
}


/* Hero title hover */

.hero-title-wrapper:hover .hero-title-3d {
    transform: perspective(700px) translateY(-3px) rotateX(2deg);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 1)) drop-shadow(0 2px 0 rgba(105, 171, 196, 0.34)) drop-shadow(0 4px 0 rgba(53, 124, 157, 0.20)) drop-shadow(0 7px 4px rgba(18, 48, 66, 0.13)) drop-shadow(0 16px 22px rgba(18, 48, 66, 0.14));
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 992px) {

    .modern-login__card {
        width: min(650px, 100%);
        grid-template-columns: 1fr;
    }

    .modern-login__aside {
        padding: 1.75rem 2rem;
    }

    .modern-login__logo {
        width: 180px;
        max-height: 180px;
    }

    .modern-login__form-wrap {
        padding: 2rem;
    }

    .home-intro__hero {
        text-align: center;
    }

    .home-intro__logo {
        margin-left: auto;
        margin-right: auto;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 768px) {

    .hero-section {
        padding: 60px 16px;
    }

    .hero-title-3d {
        font-size: 2.3rem !important;
        letter-spacing: -0.8px;
    }
}


@media (max-width: 576px) {

    .modern-login {
        padding: 1rem 0.5rem;
    }

    .modern-login__shape--grid,
    .modern-login__shape--diamond {
        display: none;
    }

    .modern-login__shape--ring {
        width: 9rem;
        height: 9rem;
        right: -3rem;
        bottom: -3rem;
    }

    .modern-login__card {
        border-radius: 1rem;
    }

    .modern-login__aside {
        padding: 1.4rem 1.25rem;
    }

    .modern-login__logo {
        width: 145px;
        max-height: 145px;
        margin-bottom: 0.35rem;
    }

    .modern-login__aside h1 {
        font-size: 1.45rem;
    }

    .modern-login__aside p {
        font-size: 0.9rem;
    }

    .modern-login__form-wrap {
        padding: 1.5rem 1.25rem;
    }

    .home-intro__card {
        padding: 1rem;
    }
}


@media (max-width: 480px) {

    .hero-title-3d {
        font-size: 1.9rem !important;
    }

    .hero-title-wrapper {
        padding-bottom: 14px;
    }

        .hero-title-wrapper::after {
            width: 65px;
            height: 3px;
        }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .modern-login__btn,
    .home-intro__card,
    .hero-title-3d,
    .btn-glow {
        transition: none;
    }

    .btn-animated:hover::after {
        animation: none;
    }
}