/* ===== 登录页 ===== */
#loginPage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#loginBox {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 44px 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

#loginBox h1 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ff6b9d, #ff2e7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#loginBox .subtitle {
    text-align: center;
    opacity: 0.5;
    font-size: 14px;
    margin-bottom: 28px;
    -webkit-text-fill-color: #fff;
}

#loginBox label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 4px;
    margin-top: 16px;
}

#loginBox label:first-of-type {
    margin-top: 0;
}

#loginBox input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border 0.2s, background 0.2s;
}

#loginBox input[type="text"]:focus {
    border-color: #ff6b9d;
    background: rgba(255, 255, 255, 0.1);
}

#loginBox input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#loginBox .gender {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    flex-wrap: wrap;
}

#loginBox .gender label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0;
    cursor: pointer;
    font-size: 14px;
}

#loginBox .gender input[type="radio"] {
    accent-color: #ff6b9d;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#loginButton {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff6b9d, #ff2e7d);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 22px;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 28px rgba(255, 46, 125, 0.3);
}

#loginButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(255, 46, 125, 0.4);
}

#loginButton:active {
    transform: scale(0.96);
}

#loginButton:disabled {
    opacity: 0.5;
    pointer-events: none;
}

#errorText {
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}

/* 响应式 */
@media (max-width: 420px) {
    #loginBox {
        padding: 32px 20px;
        margin: 16px;
    }
    #loginBox h1 {
        font-size: 24px;
    }
}
