/* love-skin 登录页 */
:root {
    --rose: #e56f94;
    --rose-deep: #d95a83;
    --ink: #4b3940;
    --ink-soft: #9a7f89;
    --line: #f6d5de;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
    min-height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    color: var(--ink);
    font-family: "Rubik", "PingFang SC", "Microsoft YaHei", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(60rem 40rem at 12% 8%, #ffe4ec 0%, transparent 60%),
        radial-gradient(50rem 36rem at 92% 96%, #ffe9f0 0%, transparent 62%),
        #fff7f9;
    overflow: hidden;
}

button,
input {
    font-family: inherit;
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-form {
    width: 100%;
    max-width: 392px;
    padding: 2.4rem 2.2rem 1.6rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #fbe3ea;
    border-radius: 28px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 24px 60px -18px rgba(229, 111, 148, 0.32),
        0 4px 14px rgba(229, 111, 148, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.love-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(140deg, #ffb7c9 0%, #e56f94 100%);
    box-shadow: 0 12px 24px -8px rgba(229, 111, 148, 0.6);
}

.love-mark svg {
    width: 34px;
    height: 34px;
    animation: love-beat 1.9s ease-in-out infinite;
    transform-origin: 50% 60%;
}

.love-title {
    margin: 0;
    font-family: "Yuanti SC", "YouYuan", ui-rounded, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.love-sub {
    margin: 0.5rem 0 1.9rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.input-group {
    margin-bottom: 1.1rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin: 0 0 0.4rem 0.3rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: var(--ink);
    background: #fff9fb;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-group input:focus {
    background: #fff;
    border-color: #f2a3b9;
    box-shadow: 0 0 0 4px rgba(229, 111, 148, 0.14);
}

button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f58fab 0%, #e56f94 100%);
    box-shadow: 0 10px 22px -8px rgba(229, 111, 148, 0.7);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
    filter: brightness(1.04);
    box-shadow: 0 14px 26px -8px rgba(229, 111, 148, 0.8);
}

button:active {
    transform: translateY(1px) scale(0.99);
}

.error {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: #c8385f;
}

.love-foot {
    margin: 1.5rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #d3b3bd;
}

.love-foot span {
    color: #f29ab2;
    letter-spacing: 0;
}

/* 背景里慢慢往上飘的小爱心 */
.love-float {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.love-float i {
    position: absolute;
    bottom: -40px;
    width: var(--s, 18px);
    height: var(--s, 18px);
    opacity: 0;
    background: #f7a8bd;
    -webkit-mask: url(/public/love-heart-mask.svg) center / contain no-repeat;
    mask: url(/public/love-heart-mask.svg) center / contain no-repeat;
    animation: love-rise var(--d, 14s) linear infinite;
    animation-delay: var(--w, 0s);
}

.love-float i:nth-child(1) { left: 6%;  --s: 16px; --d: 15s; --w: -2s; }
.love-float i:nth-child(2) { left: 17%; --s: 26px; --d: 19s; --w: -9s; }
.love-float i:nth-child(3) { left: 29%; --s: 12px; --d: 13s; --w: -5s; }
.love-float i:nth-child(4) { left: 41%; --s: 20px; --d: 21s; --w: -14s; }
.love-float i:nth-child(5) { left: 56%; --s: 14px; --d: 16s; --w: -7s; }
.love-float i:nth-child(6) { left: 68%; --s: 28px; --d: 22s; --w: -3s; }
.love-float i:nth-child(7) { left: 79%; --s: 13px; --d: 14s; --w: -11s; }
.love-float i:nth-child(8) { left: 88%; --s: 22px; --d: 18s; --w: -6s; }
.love-float i:nth-child(9) { left: 95%; --s: 15px; --d: 20s; --w: -16s; }

@keyframes love-rise {
    0%   { transform: translate3d(0, 0, 0) rotate(-8deg); opacity: 0; }
    12%  { opacity: 0.5; }
    50%  { transform: translate3d(18px, -52vh, 0) rotate(8deg); }
    88%  { opacity: 0.35; }
    100% { transform: translate3d(-10px, -108vh, 0) rotate(-6deg); opacity: 0; }
}

@keyframes love-beat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.14); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    56% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .love-float { display: none; }
    .love-mark svg { animation: none; }
}
