/* Social frontend — no external @import (avoids blocked Google Fonts stalling CSS) */
:root {
    --sf-ink: #13241f;
    --sf-deep: #0a3a33;
    --sf-teal: #127566;
    --sf-mint: #2bb89a;
    --sf-saffron: #e8912d;
    --sf-coral: #e25b45;
    --sf-fog: #eaf3f0;
    --sf-mist: #f4faf7;
    --sf-line: rgba(19, 36, 31, 0.12);
    --sf-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --sf-display: "Syne", "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --sf-body: "Figtree", "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body.sf-body {
    font-family: var(--sf-body);
    color: var(--sf-ink);
    background: var(--sf-mist);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--sf-teal);
    text-decoration: none;
    transition: color 0.25s var(--sf-ease);
}

a:hover {
    color: var(--sf-coral);
}

.sf-brand {
    font-family: var(--sf-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.sf-stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Local CSS stage — no remote images required */
.sf-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 15% 20%, rgba(43, 184, 154, 0.55), transparent 55%),
        radial-gradient(900px 600px at 85% 30%, rgba(232, 145, 45, 0.45), transparent 50%),
        radial-gradient(800px 500px at 50% 100%, rgba(226, 91, 69, 0.28), transparent 55%),
        linear-gradient(145deg, #062821 0%, #0c4a40 42%, #1a3a2f 72%, #2a2116 100%);
}

.sf-hero-media::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent 0,
            transparent 34px,
            rgba(255, 255, 255, 0.03) 34px,
            rgba(255, 255, 255, 0.03) 35px
        );
    animation: sf-drift 22s linear infinite;
}

.sf-hero-media img {
    display: none;
}

.sf-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 40, 33, 0.25) 0%, rgba(6, 40, 33, 0.55) 55%, rgba(6, 40, 33, 0.88) 100%);
}

.sf-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    animation: sf-float 10s ease-in-out infinite;
}

.sf-orb--a {
    width: 280px;
    height: 280px;
    background: rgba(43, 184, 154, 0.45);
    top: 12%;
    left: -60px;
}

.sf-orb--b {
    width: 320px;
    height: 320px;
    background: rgba(232, 145, 45, 0.35);
    bottom: 8%;
    right: -80px;
    animation-delay: -3s;
}

.sf-topbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(20px, 4vw, 48px);
    color: #fff;
}

.sf-topbar .sf-brand {
    font-size: 1.15rem;
    color: #fff;
}

.sf-top-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.95rem;
}

.sf-top-link:hover {
    color: #fff;
}

.sf-hero {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(40px, 7vw, 80px);
    color: #fff;
    max-width: 820px;
}

.sf-hero .sf-brand {
    font-size: clamp(3.4rem, 9vw, 6.8rem);
    margin: 0 0 18px;
    opacity: 0;
    transform: translateY(28px);
    animation: sf-rise 0.9s var(--sf-ease) 0.1s forwards;
}

.sf-hero h1 {
    font-family: var(--sf-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    max-width: 18ch;
    opacity: 0;
    transform: translateY(24px);
    animation: sf-rise 0.9s var(--sf-ease) 0.25s forwards;
}

.sf-hero p {
    margin: 0 0 28px;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(24px);
    animation: sf-rise 0.9s var(--sf-ease) 0.4s forwards;
}

.sf-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(24px);
    animation: sf-rise 0.9s var(--sf-ease) 0.55s forwards;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s var(--sf-ease), background 0.25s var(--sf-ease);
}

.sf-btn:hover {
    transform: translateY(-2px);
}

.sf-btn:active {
    transform: translateY(0);
}

.sf-btn--primary {
    background: var(--sf-saffron);
    color: #1f1408;
}

.sf-btn--primary:hover {
    background: #f0a245;
    color: #1f1408;
}

.sf-btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.sf-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sf-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    animation: sf-pulse 1.8s ease-out infinite;
}

.sf-strip {
    position: relative;
    z-index: 2;
    background: var(--sf-mist);
    padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 48px);
}

.sf-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sf-strip h2 {
    font-family: var(--sf-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    color: var(--sf-deep);
}

.sf-strip > .sf-strip-inner > p {
    margin: 0 0 36px;
    color: rgba(19, 36, 31, 0.72);
    max-width: 42ch;
    font-size: 1.05rem;
}

.sf-moments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sf-moment {
    position: relative;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
}

.sf-moment--a {
    background: linear-gradient(145deg, #0f6b5c, #2bb89a 55%, #e8912d);
}

.sf-moment--b {
    background: linear-gradient(160deg, #1a2e3b, #127566 50%, #e25b45);
}

.sf-moment--c {
    background: linear-gradient(150deg, #2a2116, #e8912d 45%, #0a3a33);
}

.sf-moment span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.sf-moment::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.22), transparent 40%),
        linear-gradient(180deg, transparent 35%, rgba(6, 40, 33, 0.55) 100%);
    transition: transform 0.7s var(--sf-ease);
}

.sf-moment:hover::after {
    transform: scale(1.06);
}

.sf-footer-lite {
    padding: 24px clamp(20px, 4vw, 48px) 36px;
    color: rgba(19, 36, 31, 0.55);
    font-size: 0.9rem;
    background: var(--sf-mist);
}

.sf-footer-lite a {
    color: inherit;
}

/* Auth */
.sf-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.sf-auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 5vw, 56px);
}

.sf-auth-visual .sf-hero-media {
    position: absolute;
}

.sf-auth-copy {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.sf-auth-copy .sf-brand {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    margin: 0 0 16px;
    opacity: 0;
    transform: translateY(24px);
    animation: sf-rise 0.85s var(--sf-ease) 0.1s forwards;
}

.sf-auth-copy p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 28ch;
    opacity: 0;
    transform: translateY(24px);
    animation: sf-rise 0.85s var(--sf-ease) 0.28s forwards;
}

.sf-auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
    overflow-y: auto;
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(43, 184, 154, 0.16), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(232, 145, 45, 0.14), transparent 55%),
        var(--sf-mist);
}

.sf-auth-form {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: sf-rise 0.85s var(--sf-ease) 0.35s forwards;
}

.sf-auth-form h2 {
    font-family: var(--sf-display);
    font-size: 1.85rem;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    color: var(--sf-deep);
}

.sf-auth-form .sf-lead {
    margin: 0 0 28px;
    color: rgba(19, 36, 31, 0.65);
}

.sf-tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--sf-line);
}

.sf-tabs a {
    padding: 0 0 12px;
    font-weight: 700;
    color: rgba(19, 36, 31, 0.45);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.sf-tabs a.active,
.sf-tabs a:hover {
    color: var(--sf-deep);
    border-bottom-color: var(--sf-saffron);
}

.sf-field {
    margin-bottom: 16px;
}

.sf-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(19, 36, 31, 0.75);
}

.sf-field .form-control,
.sf-auth-form .form-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0 14px;
    font-size: 1rem;
    color: var(--sf-ink);
    box-shadow: none;
    transition: border-color 0.25s var(--sf-ease), background 0.25s var(--sf-ease), transform 0.25s var(--sf-ease);
}

.sf-auth-form .form-control:focus {
    outline: none;
    border-color: var(--sf-mint);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: none;
}

.sf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 22px;
    font-size: 0.92rem;
}

.sf-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
    color: rgba(19, 36, 31, 0.7);
    cursor: pointer;
}

.sf-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--sf-teal);
}

.sf-auth-form .btn-forgot {
    font-weight: 600;
}

.sf-auth-form .help-block,
.sf-auth-form .msg-box {
    font-size: 0.85rem;
}

.sf-auth-form .btn.btn-default.no-border {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-weight: 600;
    color: rgba(19, 36, 31, 0.62);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sf-auth-form .btn.btn-primary,
.sf-auth-form button[type="submit"].btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sf-teal), var(--sf-mint));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.25s var(--sf-ease), filter 0.25s var(--sf-ease);
}

.sf-auth-form .btn.btn-primary:hover,
.sf-auth-form button[type="submit"].btn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    color: #fff;
}

.sf-auth-home {
    display: inline-flex;
    margin-top: 22px;
    font-weight: 600;
    color: rgba(19, 36, 31, 0.55);
}

@keyframes sf-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sf-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(18px, -22px, 0);
    }
}

@keyframes sf-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes sf-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-40px, 24px, 0);
    }
}

@media (max-width: 900px) {
    .sf-auth {
        grid-template-columns: 1fr;
    }

    .sf-auth-visual {
        min-height: 38vh;
        padding: 24px 20px 28px;
    }

    .sf-auth-copy .sf-brand {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
    }

    .sf-moments {
        grid-template-columns: 1fr;
    }

    .sf-moment {
        min-height: 180px;
    } 
}

@media (prefers-reduced-motion: reduce) {
    .sf-orb,
    .sf-pulse,
    .sf-hero-media::before,
    .sf-hero .sf-brand,
    .sf-hero h1,
    .sf-hero p,
    .sf-cta-row,
    .sf-auth-copy .sf-brand,
    .sf-auth-copy p,
    .sf-auth-form {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
