@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
    --cl-ink: #0b1f1c;
    --cl-muted: #5b6b66;
    --cl-line: rgba(15, 23, 42, 0.1);
    --cl-surface: #f4f7f6;
    --cl-panel: #ffffff;
    --cl-brand: #0f766e;
    --cl-brand-deep: #0a4f49;
    --cl-accent: #84cc16;
    --cl-danger: #b91c1c;
}

/* Kill default simple-layout chrome on login */
body:has(.cl-login) .fi-simple-layout,
body:has(.cl-login) .fi-simple-main-ctn,
body:has(.cl-login) .fi-simple-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

body:has(.cl-login) {
    background: var(--cl-ink);
}

.cl-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    font-family: 'Manrope', sans-serif;
    color: var(--cl-ink);
    overflow: hidden;
}

.cl-login__hero {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(10, 79, 73, 0.88) 0%, rgba(11, 31, 28, 0.72) 48%, rgba(15, 23, 42, 0.55) 100%),
        url('/images/middle_image.jpg') center / cover no-repeat;
}

.cl-login__hero::before {
    content: '';
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(circle at 18% 22%, rgba(132, 204, 22, 0.28), transparent 42%),
        radial-gradient(circle at 78% 68%, rgba(15, 118, 110, 0.35), transparent 46%);
    animation: cl-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.cl-login__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 31, 28, 0.15) 0%, rgba(11, 31, 28, 0.55) 100%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 11px,
            rgba(255, 255, 255, 0.015) 11px,
            rgba(255, 255, 255, 0.015) 12px
        );
    z-index: 1;
    pointer-events: none;
}

.cl-login__hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #f8fafc;
}

.cl-login__brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    animation: cl-rise 700ms ease both;
}

.cl-login__brand-mark img {
    height: 2.6rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.cl-login__brand-mark span {
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.86;
}

.cl-login__hero-copy {
    max-width: 34rem;
    animation: cl-rise 900ms ease both;
    animation-delay: 80ms;
}

.cl-login__hero-copy h1 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.4rem, 4.4vw, 3.8rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.cl-login__hero-copy h1 em {
    font-style: normal;
    color: #d9f99d;
}

.cl-login__hero-copy p {
    margin: 1.1rem 0 0;
    max-width: 28rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.84);
}



.cl-login__panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    background:
        linear-gradient(180deg, #f7faf9 0%, #eef5f3 100%);
}

.cl-login__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(132, 204, 22, 0.12), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.1), transparent 40%);
    pointer-events: none;
}

.cl-login__card {
    position: relative;
    z-index: 1;
    width: min(100%, 26.5rem);
    animation: cl-rise 750ms ease both;
    animation-delay: 120ms;
}

.cl-login__logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.cl-login__logo img {
    height: 2.75rem;
    width: auto;
}

.cl-login__logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cl-login__logo-text strong {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cl-ink);
}

.cl-login__logo-text span {
    font-size: 0.78rem;
    color: var(--cl-muted);
    font-weight: 600;
}

.cl-login__title {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--cl-ink);
}

.cl-login__subtitle {
    margin: 0.55rem 0 1.6rem;
    color: var(--cl-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}



.cl-login__form .fi-fo-field-wrp {
    margin-bottom: 0.15rem;
}

.cl-login__form .fi-input-wrp {
    border-radius: 0.85rem !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.cl-login__form .fi-btn {
    border-radius: 0.85rem !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    min-height: 2.85rem;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.cl-login__form .fi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
}

.cl-login__foot {
    margin-top: 1.75rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--cl-line);
    color: var(--cl-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.cl-login__foot strong {
    color: var(--cl-ink);
    font-weight: 700;
}

@keyframes cl-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cl-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(2%, -1.5%, 0) scale(1.04);
    }
}

@media (max-width: 1024px) {
    .cl-login {
        grid-template-columns: 1fr;
    }

    .cl-login__hero {
        min-height: 38vh;
    }

    .cl-login__hero-inner {
        min-height: 38vh;
        justify-content: flex-end;
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .cl-login__hero-copy h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .cl-login__hero-copy p {
        display: none;
    }

    .cl-login__panel {
        min-height: 62vh;
        align-items: flex-start;
        padding-top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cl-login__hero::before,
    .cl-login__brand-mark,
    .cl-login__hero-copy,
    .cl-login__hero-meta,
    .cl-login__card,
    .cl-login__form .fi-btn {
        animation: none !important;
        transition: none !important;
    }
}
