
:root {

    --pink-primary: #ff4d88;
    --pink-deep: #e02b6b;
    --pink-dark: #c21e58;
    --pink-light: #ff7aa8;
    --pink-soft-bg: rgba(255, 77, 136, 0.08);
    --pink-border-light: rgba(255, 77, 136, 0.18);
    --pink-border-medium: rgba(255, 77, 136, 0.35);


    --bg-deep: #0a0a0f;
    --bg-card: #14141a;
    --bg-input: #1a1a22;
    --bg-hover: #1f1f29;


    --text-1: #f0f0f5;
    --text-2: #c8c8d0;
    --text-3: #90909a;
    --text-4: #666670;


    --line-dark: #2a2a33;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 四层背景叠加：细斜纹 + 右上粉光 + 左下压暗 + 主黑渐变 */
    background-color: #07070a;
    background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M-2,22 L22,-2' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.03'/%3E%3C/svg%3E"),
            radial-gradient(circle at 80% 8%, rgba(255, 77, 136, 0.15), rgba(255, 77, 136, 0) 50%),
            radial-gradient(circle at 10% 95%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 55%),
            linear-gradient(150deg, #1a1218 0%, #0f0f14 35%, #0a0a0f 75%, #07070a 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 右上角粉色圆环装饰，纯氛围不挡交互 */
body::before {
    content: "";
    position: fixed;
    top: -240px;
    right: -220px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 136, 0.15);
    box-shadow:
            0 0 0 30px rgba(255, 77, 136, 0.04),
            0 0 0 70px rgba(255, 77, 136, 0.02),
            0 0 0 120px rgba(255, 77, 136, 0.01);
    pointer-events: none;
    z-index: 0;
}

/* 登录卡片 */
.box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 42px 38px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 77, 136, 0.15);
    border-radius: 16px;
    box-shadow:
            0 30px 60px -12px rgba(0, 0, 0, 0.6),
            0 8px 20px -6px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    z-index: 1;
}

/* 卡片顶部粉杠 + 淡粉光带 */
.box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
    var(--pink-light) 0%,
    var(--pink-primary) 50%,
    var(--pink-dark) 100%);
}

.box::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
    rgba(255, 77, 136, 0) 0%,
    rgba(255, 77, 136, 0.5) 50%,
    rgba(255, 77, 136, 0) 100%);
}

/* 统一图标尺寸 */
.ico {
    display: block;
    width: 18px;
    height: 18px;
    flex: none;
}

/* 顶部品牌标识 */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.seal {
    width: 32px;
    height: 32px;
    flex: none;
    filter: drop-shadow(0 4px 8px rgba(255, 77, 136, 0.3));
}

.brand-name {
    color: var(--text-2);
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 500;
}

.box h1 {
    margin: 0 0 8px;
    color: var(--text-1);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
}

.box .subtitle {
    margin: 0 0 24px;
    color: var(--text-3);
    font-size: 14px;
    text-align: center;
}

/* 带粉菱的分隔线 */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
}

.divider::before {
    background: linear-gradient(90deg,
    rgba(255, 77, 136, 0) 0%,
    rgba(255, 77, 136, 0.3) 100%);
}

.divider::after {
    background: linear-gradient(90deg,
    rgba(255, 77, 136, 0.3) 0%,
    rgba(255, 77, 136, 0) 100%);
}

.divider i {
    width: 6px;
    height: 6px;
    flex: none;
    background: var(--pink-primary);
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px rgba(255, 77, 136, 0.1);
    border-radius: 1px;
}

/* 错误/成功提示条 */
.err, .ok {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-left: 3px solid;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.err .ico, .ok .ico {
    margin-top: 1px;
    flex-shrink: 0;
}

.err {
    border-color: var(--pink-primary);
    background: var(--pink-soft-bg);
    color: var(--pink-light);
}

.ok {
    border-color: #2e9e6b;
    background: rgba(46, 158, 107, 0.08);
    color: #4cd492;
}

/* 表单项 */
.item {
    margin-bottom: 18px;
}

.item label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-2);
    font-weight: 500;
    font-size: 14px;
}

.field {
    position: relative;
}

.item input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    background: var(--bg-input);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-1);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.item input::placeholder {
    color: var(--text-4);
}

.item input:hover {
    border-color: var(--pink-border-medium);
    background: var(--bg-hover);
}

.item input:focus {
    border-color: var(--pink-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(255, 77, 136, 0.1);
}

.item input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 77, 136, 0.5);
    background: rgba(255, 77, 136, 0.05);
}

/* 输入框左侧图标，聚焦联动变粉 */
.field .ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
    transition: color 0.25s ease;
}

.field input:focus + .ico {
    color: var(--pink-primary);
}

.item .hint {
    margin: 6px 0 0;
    color: var(--text-3);
    font-size: 12px;
}

/* 主按钮 */
.btn {
    display: block;
    width: 100%;
    margin-top: 28px;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg,
    var(--pink-light) 0%,
    var(--pink-primary) 45%,
    var(--pink-dark) 100%);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 10px 20px -4px rgba(255, 77, 136, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 14px 28px -4px rgba(255, 77, 136, 0.4);
    filter: brightness(1.08);
}

.btn:active {
    transform: translateY(0);
    box-shadow:
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            0 6px 12px -2px rgba(255, 77, 136, 0.25);
    filter: brightness(0.95);
}

.btn:focus-visible {
    outline: 3px solid rgba(255, 77, 136, 0.35);
    outline-offset: 2px;
}

/* 次要按钮：黑底粉边 */
.btn-line {
    border: 1px solid var(--pink-border-light);
    background: transparent;
    box-shadow: none;
    color: var(--pink-primary);
}

.btn-line:hover {
    border-color: var(--pink-primary);
    background: var(--pink-soft-bg);
    box-shadow: none;
    color: var(--pink-light);
    filter: none;
    transform: translateY(-1px);
}

/* 底部小字提示 */
.tips {
    margin: 24px 0 0;
    color: var(--text-3);
    font-size: 13px;
    text-align: center;
}

.tips a {
    color: var(--pink-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.tips a:hover {
    color: var(--pink-light);
    border-bottom-color: currentColor;
}

.tips a:focus-visible {
    outline: 2px solid var(--pink-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* 主页信息区 */
.welcome {
    margin: 0 0 18px;
    color: var(--text-2);
    font-size: 15px;
    text-align: center;
}

.welcome b {
    color: var(--pink-primary);
    font-weight: 600;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--line-dark);
}

.row:last-of-type {
    border-bottom: none;
}

.row-key {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    color: var(--text-3);
}

.row-key .ico {
    color: var(--pink-primary);
}

.row em {
    font-style: normal;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--text-1);
    text-align: right;
    word-break: break-all;
}

/* 无障碍：减少动态效果 */
@media (prefers-reduced-motion: reduce) {
    .item input,
    .field .ico,
    .btn,
    .tips a {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .box {
        padding: 32px 24px;
        border-radius: 14px;
    }

    .box h1 {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .brand-name {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .btn {
        letter-spacing: 2px;
        padding: 12px;
    }
}
