* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --page-top: #f0fdfa;
    --page-mid: #f8fafc;
    --page-bottom: #eef2ff;
    --accent: #0d9488;
    --accent-light: #5eead4;
    --accent-soft: #ccfbf1;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --border-soft: rgba(148, 163, 184, 0.35);
    --card-bg: rgba(255, 255, 255, 0.92);
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 100% 70% at 50% -15%, rgba(167, 243, 208, 0.45) 0%, transparent 52%),
        radial-gradient(ellipse 70% 55% at 100% 100%, rgba(199, 210, 254, 0.35) 0%, transparent 48%),
        radial-gradient(ellipse 60% 50% at 0% 85%, rgba(254, 215, 170, 0.22) 0%, transparent 42%),
        linear-gradient(165deg, var(--page-top) 0%, var(--page-mid) 48%, var(--page-bottom) 100%);
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 12% 22%, rgba(45, 212, 191, 0.35) 0%, transparent 100%),
        radial-gradient(2px 2px at 32% 62%, rgba(129, 140, 248, 0.28) 0%, transparent 100%),
        radial-gradient(1px 1px at 58% 42%, rgba(251, 191, 36, 0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 78% 18%, rgba(94, 234, 212, 0.32) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 72%, rgba(196, 181, 253, 0.28) 0%, transparent 100%),
        radial-gradient(2px 2px at 24% 88%, rgba(52, 211, 153, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 66% 92%, rgba(125, 211, 252, 0.28) 0%, transparent 100%);
    background-size: 100% 100%;
    animation: particle-drift 18s ease-in-out infinite alternate;
}

.login-particles::after {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.65) 0%, transparent 55%);
    animation: particle-pulse 6s ease-in-out infinite;
}

@keyframes particle-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.75;
    }
    100% {
        transform: translate(-2%, 1.5%) scale(1.03);
        opacity: 1;
    }
}

@keyframes particle-pulse {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.85;
    }
}

.login-box {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: 100%;
    padding: 40px 32px;
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid var(--border-soft);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 4px 24px rgba(15, 23, 42, 0.06),
        0 24px 48px rgba(15, 23, 42, 0.08);
    animation: login-in 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes login-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 36px;
    background: linear-gradient(180deg, #0f766e 0%, #334155 55%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: none;
}

.title::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(199, 210, 254, 0.45) 100%);
    border: 1px solid rgba(45, 212, 191, 0.35);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
    position: relative;
}

.input-item {
    margin-bottom: 20px;
    position: relative;
}

.input-item::before {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
    z-index: 1;
    filter: none;
}

.input-item:nth-of-type(1)::before {
    content: "◇";
    font-size: 12px;
    color: #0d9488;
}

.input-item:nth-of-type(2)::before {
    content: "▣";
    font-size: 11px;
    color: #0891b2;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-row::before {
    display: none;
}

.remember-checkbox {
    width: auto;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.remember-label {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

input {
    width: 100%;
    padding: 15px 16px 15px 46px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: var(--text-primary);
}

input::placeholder {
    color: rgba(100, 116, 139, 0.75);
}

input:focus {
    border-color: #2dd4bf;
    box-shadow:
        0 0 0 3px rgba(45, 212, 191, 0.2),
        0 4px 16px rgba(13, 148, 136, 0.08);
    background: #ffffff;
}

.login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    border: 1px solid rgba(45, 212, 191, 0.55);
    box-shadow:
        0 4px 18px rgba(13, 148, 136, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(13, 148, 136, 0.32),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.login-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.25);
}

.login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .login-particles,
    .login-particles::after,
    .login-box {
        animation: none;
    }

    .login-btn {
        transition: none;
    }

    .login-btn:hover {
        transform: none;
    }
}

.tip {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .login-box {
        padding: 32px 22px;
        border-radius: 18px;
    }

    .title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    input {
        padding: 13px 14px 13px 44px;
        font-size: 14px;
    }

    .login-btn {
        padding: 13px;
        font-size: 15px;
    }
}
