:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-gradient-start: #2c3e50;
    --background-gradient-end: #3498db;
    --input-border-color: #ddd;
    --text-color: #333;
    --placeholder-color: #999;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-end));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto; /* 允许垂直滚动 */
    padding: 20px 0; /* 上下添加内边距 */
}

/* 添加高斯模糊背景 */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(10px);
    z-index: -1;
}

/* 注册容器 */
.container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    margin: auto;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--placeholder-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

input {
    width: 100%;
    padding: 1rem 3rem;
    border: 1px solid var(--input-border-color);
    border-radius: 0.8rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

input:focus + i {
    color: var(--primary-color);
}

.input-group-with-button {
    display: flex;
    gap: 1rem; /* 按钮和输入框之间的间距 */
    margin-bottom: 1.5rem;
}

.input-group-with-button input {
    flex-grow: 1;
}

.button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.button i {
    margin-right: 0.5rem;
}

.button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 协议部分 */
.agreement-container {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    /*justify-content: flex-start;*/
    /*gap: 0.5rem;*/
}

.agreement-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-right: 10px;
    padding: 8px;
}

.agreement-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.agreement-container a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-modal {
    font-size: 2rem;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #c0392b;
}

.modal-body {
    line-height: 1.8;
    color: var(--text-color);
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.popup .popup-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.popup .popup-message {
    font-size: 1rem;
    color: var(--text-color);
}

.popup .popup-button {
    margin-top: 2rem;
    padding: 1rem;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup .popup-button:hover {
    background-color: var(--secondary-color);
}
.register {
    width: 100%;
}
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    input {
        font-size: 0.9rem;
    }

    .button {
        font-size: 0.9rem;
    }
}