/* 基本样式 */
body {  
    display: flex;  
    justify-content: center;  
    align-items: center;  
    height: 100vh;  
    background: linear-gradient(135deg, #f9f9f9, #ebeff2);  
    font-family: 'Arial', sans-serif;  
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}  

.registration-container {  
    background: white;  
    padding: 30px;  
    border-radius: 10px;  
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);  
    max-width: 400px;  
    width: 100%;  
}  


/* main.html 的样式 */
.top-right {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* 确保在最上层 */
    width: 100%;
    justify-content: flex-end;
}

.top-right p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.top-right button {
    width: 20%; /* 设置按钮宽度为页面宽度的20% */
    padding: 6px 12px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.top-right button:hover {
    background-color: #0056b3;
}


/* main.html 的内容区域 */
.main-content {
    padding: 70px 20px; /* 顶部留出空间，避免内容被固定栏遮挡 */
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}


h1 {  
    text-align: center;  
    color: #333;  
    margin-top: 0;
}  

p {
    text-align: center;
    color: #555;
    margin: 20px 0;
}

.input-group {  
    margin-bottom: 20px;  
}  

label {  
    display: block;  
    margin-bottom: 5px;  
    font-weight: bold;  
    color: #555;  
}  

input {  
    width: 100%;  
    padding: 12px;  
    border: 1px solid #ccc;  
    border-radius: 5px;  
    transition: border-color 0.3s;  
    box-sizing: border-box; /* 确保padding不超出宽度 */  
}  

input:focus {  
    border-color: #007bff;  
    outline: none;  
}  

button {  
    width: 100%;  
    padding: 12px;  
    background-color: #007bff;  
    color: white;  
    border: none;  
    border-radius: 5px;  
    font-weight: bold;  
    cursor: pointer;  
    transition: background-color 0.3s;  
}  

button:hover {  
    background-color: #0056b3;  
}  

#message {  
    text-align: center;  
    margin-top: 15px;  
    color: red;  
}  

.footer {  
    text-align: center;  
    margin-top: 20px;  
}  

.footer a {  
    color: #007bff;  
    text-decoration: none;  
}  

.footer a:hover {  
    text-decoration: underline;  
}  

/* 响应式设计 */
@media (max-width: 767px) {
    .top-right {
        padding: 10px;
    }

    .top-right p, .top-right button {
        font-size: 14px;
    }
    .top-right button {
        width: 40%; /* 在小屏幕上，按钮宽度可以适当增大 */
    }
    .main-content {
        padding: 60px 10px;
    }
    .registration-container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .input-group label {
        font-size: 14px;
    }

    input, button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .top-right {
        padding: 10px 20px;
    }

    .top-right p, .top-right button {
        font-size: 16px;
    }

    .main-content {
        padding: 70px 20px;
    }
    .registration-container {
        padding: 25px;
    }

    h1 {
        font-size: 28px;
    }

    .input-group label {
        font-size: 16px;
    }

    input, button {
        padding: 12px;
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .top-right {
        padding: 10px 30px;
    }

    .top-right p, .top-right button {
        font-size: 18px;
    }

    .main-content {
        padding: 70px 30px;
    }
    .registration-container {
        padding: 30px;
    }

    h1 {
        font-size: 32px;
    }

    .input-group label {
        font-size: 18px;
    }

    input, button {
        padding: 14px;
        font-size: 18px;
    }
}