/* ============================================================
   The Cloud Fill sky — warm gradient, drifting clouds, and the
   brand blimp. Used on marketing pages and auth screens only;
   the app interior stays calm and static.
   ============================================================ */

.cf-sky {
    min-height: 100vh;
    background: linear-gradient(180deg,
        var(--cf-sky-top) 0%,
        var(--cf-sky-mid) 52%,
        var(--cf-sky-bottom) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* ── Blimp: gentle bob + very slow drift ── */
.cf-blimp {
    position: absolute;
    top: 7%;
    left: 6%;
    width: clamp(140px, 20vw, 260px);
    animation: cf-bob 7s ease-in-out infinite, cf-drift 90s linear infinite alternate;
    pointer-events: none;
    user-select: none;
    /* Source PNG has a white background; multiply melts it into the sky.
       Replace with a true transparent asset in the design pass (ASSETS.md). */
    mix-blend-mode: multiply;
}

/* ── Soft clouds (layered ellipses, three depths for parallax) ── */
.cf-cloud {
    position: absolute;
    background: var(--cf-cloud);
    border-radius: 999px;
    opacity: 0.9;
    pointer-events: none;
}
.cf-cloud::before,
.cf-cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}
.cf-cloud::before { width: 55%; height: 160%; left: 14%; top: -78%; }
.cf-cloud::after  { width: 42%; height: 120%; right: 14%; top: -48%; }

.cf-cloud-1 { width: 180px; height: 52px; top: 16%; right: 10%;  animation: cf-float-a 120s linear infinite; }
.cf-cloud-2 { width: 120px; height: 36px; top: 58%; left: 4%;    opacity: 0.72; animation: cf-float-b 160s linear infinite; }
.cf-cloud-3 { width: 240px; height: 64px; bottom: 9%; right: 16%; opacity: 0.6; animation: cf-float-a 200s linear infinite; }

@keyframes cf-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@keyframes cf-drift {
    from { margin-left: 0; }
    to   { margin-left: 6vw; }
}
@keyframes cf-float-a {
    from { transform: translateX(0); }
    50%  { transform: translateX(-8vw); }
    to   { transform: translateX(0); }
}
@keyframes cf-float-b {
    from { transform: translateX(0); }
    50%  { transform: translateX(9vw); }
    to   { transform: translateX(0); }
}

/* Ambient motion is a garnish — switch it all off on request */
@media (prefers-reduced-motion: reduce) {
    .cf-blimp, .cf-cloud { animation: none !important; }
}

/* ── The white card ── */
.cf-card {
    position: relative;
    z-index: 2;
    background: var(--cf-card);
    border-radius: var(--cf-radius-lg);
    box-shadow: var(--cf-shadow-card);
    padding: 40px 42px 34px;
    width: 100%;
    max-width: 420px;
}
.cf-card .cf-logo {
    display: block;
    margin: 0 auto 8px;
    width: 210px;
    max-width: 80%;
}
.cf-card h1 {
    text-align: center;
    font-size: 24px;
    margin: 6px 0 22px;
}
.cf-card .cf-sub {
    text-align: center;
    color: var(--cf-ink-soft);
    font-size: 15px;
    margin: -14px 0 22px;
}

.cf-card-links {
    text-align: center;
    margin-top: 18px;
    font-size: 14.5px;
}

.cf-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cf-ink-faint);
    font-size: 13px;
    margin: 18px 0;
}
.cf-divider::before,
.cf-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--cf-line);
}

/* MFA code input */
.cf-code-input {
    text-align: center;
    font-size: 30px;
    letter-spacing: 12px;
    font-weight: 700;
    color: var(--cf-navy);
}

@media (max-width: 480px) {
    .cf-card { padding: 30px 22px 26px; }
    .cf-blimp { width: 130px; opacity: 0.85; }
}
