﻿body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient( -45deg, #13151a, #171923, #1a1f2e, #151820 );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(100px);
        pointer-events: none;
    }

.注册容器 {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.输入组 {
    margin-bottom: 20px;
}

.标签 {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.输入框 {
    width: 100%;
    padding: 12px;
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    color: #ffffff;
    transition: border-color 0.3s;
    height: 44px; /* 明确设置高度 */
    box-sizing: border-box; /* 确保padding不会增加整体高度 */
}

    .输入框:focus {
        border-color: #007bff;
        outline: none;
    }

.验证码容器 {
    display: flex;
    gap: 15px;
    align-items: stretch; /* 改为stretch使所有元素高度一致 */
}

    .验证码容器 .输入框 {
        flex: 1;
    }

.验证码图片 {
    height: 44px;
    margin-top: 28px;
    cursor: pointer;
    border-radius: 4px;
}

.邮件验证按钮 {
    padding: 0 20px; /* 修改内边距 */
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    /* 删除固定高度，让它自适应容器高度 */
}

    .邮件验证按钮:hover {
        background: #218838;
    }

.注册按钮 {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .注册按钮:hover {
        background: #0056b3;
    }

.链接容器 {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.链接 {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

    .链接:hover {
        color: #0056b3;
    }

.通知 {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.成功通知 {
    background: #1e4620;
    color: #75b798;
}

.警告通知 {
    background: #2c1115;
    color: #ea868f;
}
