﻿/* ============================================================
   CLIENT WEB — LOGIN PAGE
   Desktop : full-bleed photo · frosted card left · ripples in card
   Mobile  : same full-bleed photo · card anchored to bottom
   ============================================================ */

/* ── Tokens ── */
:root {
    --ink: #0F172A;
    --muted: #475569;
    --line: rgba(255,255,255,.35);
    --bg: #FFFFFF;
    --blue: #00C2FF;
    --green: #84BD00;
    --green-dk: #4B7000;
    --nav-h: 68px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    color: var(--ink);
    background: var(--bg);
    font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.cw-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 200;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.76);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,.45);
}

.cw-nav__inner {
    width: 100%;
    padding: 0 36px;
    display: flex;
    align-items: center;
}

.cw-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cw-brand__logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.cw-brand__name {
    font-weight: 800;
    font-size: .95rem;
    color: var(--ink);
    letter-spacing: -.01em;
}

/* ─────────────────────────────────────────
   HERO WRAPPER
───────────────────────────────────────── */
.cw-hero {
    position: relative;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center; /* desktop: card vertically centred */
    padding-top: var(--nav-h);
}

/* full-bleed photo */
.cw-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: brightness(1.04) saturate(1.05);
    z-index: 0;
}

/* dark veil */
.cw-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10,18,38,.22);
    z-index: 1;
    pointer-events: none;
    transition: background .3s ease;
}

/* ambient orbs */
.cw-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .14;
    will-change: transform;
}

.orb--one {
    width: 56vmax;
    height: 56vmax;
    left: -22vmax;
    top: -24vmax;
    background: radial-gradient(circle at 40% 40%, #00C2FF, transparent 58%);
    animation: drift1 28s ease-in-out infinite alternate;
}

.orb--two {
    width: 50vmax;
    height: 50vmax;
    right: -18vmax;
    bottom: -20vmax;
    background: radial-gradient(circle at 60% 60%, #84BD00, transparent 58%);
    animation: drift2 32s ease-in-out infinite alternate;
}

@keyframes drift1 {
    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(4vmax,3vmax,0);
    }
}

@keyframes drift2 {
    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(-3vmax,-2vmax,0);
    }
}

/* ─────────────────────────────────────────
   FROSTED CARD
───────────────────────────────────────── */
.cw-card {
    position: relative;
    z-index: 3;
    overflow: hidden;
    margin-left: clamp(28px, 7vw, 110px);
    max-width: 460px;
    width: 100%;
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 0 24px 60px rgba(10,18,38,.18), 0 2px 8px rgba(10,18,38,.08);
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .6s ease .1s forwards;
}

/* copy always above ripples */
.cw-copy {
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────
   RIPPLE RINGS (confined to card)
───────────────────────────────────────── */
.ripples {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.ripple-source {
    position: absolute;
    width: 0;
    height: 0;
}

.ripple {
    position: absolute;
    top: var(--ty);
    left: var(--tx);
    width: 200px;
    height: 200px;
    border: 1.5px solid var(--blue);
    border-radius: 50%;
    transform: translate(-50%,-50%) scale(.08);
    opacity: .28;
    animation: rippleExpand 16s linear infinite;
}

    .ripple.green {
        border-color: var(--green);
    }

    .ripple.alt {
        animation-duration: 20s;
    }

    .ripple.thin {
        border-width: 1px;
        opacity: .18;
    }

    .ripple.delay-1 {
        animation-delay: 4s;
    }

    .ripple.delay-2 {
        animation-delay: 8s;
    }

    .ripple.delay-3 {
        animation-delay: 12s;
    }

    .ripple.delay-4 {
        animation-delay: 6s;
    }

    .ripple.delay-5 {
        animation-delay: 10s;
    }

@keyframes rippleExpand {
    0% {
        transform: translate(-50%,-50%) scale(.08);
        opacity: .26;
    }

    70% {
        opacity: .08;
    }

    100% {
        transform: translate(-50%,-50%) scale(1);
        opacity: 0;
    }
}

/* ─────────────────────────────────────────
   COPY STYLES
───────────────────────────────────────── */
.cw-headline {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.03em;
}

/* "Welcome to " shimmer — same as the original */
.accent {
    background: linear-gradient(90deg, #1f2937 0%, #1f2937 40%, #66d0ff 52%, #1f2937 68%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 260% 100%;
    animation: sheen 5.2s ease infinite;
}

/* "Client Web." solid green — same as the original */
.cw-headline__green {
    color: var(--green);
}

@keyframes sheen {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.cw-lede {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
}

.cw-actions {
    margin-bottom: 24px;
}

.cw-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 13px 26px;
    border-radius: 980px;
    font-size: .93rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 24px rgba(132,189,0,.32);
    transition: transform .15s ease, box-shadow .2s ease, background .18s ease;
}

    .cw-cta:hover {
        background: var(--green-dk);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(132,189,0,.40);
    }

.cw-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .80rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 20px;
}

    .cw-trust span {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .cw-trust i {
        color: var(--green);
        font-size: .86rem;
    }

/* ─────────────────────────────────────────
   ENTRANCE
───────────────────────────────────────── */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ─────────────────────────────────────────
   MOBILE  (≤ 768px)
   Photo stays full-bleed · card centred on screen
───────────────────────────────────────── */
@media (max-width: 768px) {

    html, body {
        overflow-y: auto;
        height: auto;
    }

    .cw-hero {
        height: 100svh;
        align-items: center; /* ← was flex-end, now centred */
        padding-bottom: 0; /* ← remove bottom offset */
    }

        /* darken the photo a touch more so the card reads cleanly */
        .cw-hero::after {
            background: rgba(10,18,38,.40);
        }

    .cw-card {
        margin: 0 16px;
        max-width: 100%;
        border-radius: 20px;
        padding: 28px 24px;
    }

    .cw-trust {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .cw-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cw-card {
        margin: 0 12px;
        padding: 24px 20px;
    }
}

/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .orb {
        animation: none;
    }

    .ripples {
        display: none;
    }

    .cw-card {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .accent {
        animation: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        color: var(--ink);
    }
}

/* ─────────────────────────────────────────
   LEGACY UTILITIES
───────────────────────────────────────── */
.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

p {
    text-shadow: none;
}
