/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(135deg, #64b3f4 0%, #0052d4 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

/* 响应式调整 */
@media (max-height: 800px) {
    .login-container {
        top: 65%;
        padding: 30px;
    }
}

@media (max-height: 600px) {
    .login-container {
        top: 60%;
        padding: 20px;
    }
}

/* 波浪背景 */
body::before, body::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

body::before {
    top: -50%;
    left: -25%;
    animation: wave 15s infinite linear;
}

body::after {
    bottom: -50%;
    right: -25%;
    animation: wave 20s infinite linear reverse;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 1;
}

/* 登录表单 */
.login-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 标题 */
.login-form h2 {
    text-align: center;
    color: #0052d4;
    margin-bottom: 10px;
    font-size: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form h2::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: linear-gradient(135deg, #64b3f4 0%, #0052d4 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* 输入框 */
.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f8f8f8;
    color: #333;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #0052d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 212, 0.2);
}

/* 记住我 */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

/* 按钮样式 */
button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.clear-btn {
    background-color: #e0f7fa;
    color: #00838f;
}

.login-btn {
    background-color: #0052d4;
    color: white;
}

.guest-btn {
    background-color: #f0f0f0;
    color: #666;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.clear-btn:hover {
    background-color: #b2ebf2;
}

.login-btn:hover {
    background-color: #003da0;
}

.guest-btn:hover {
    background-color: #e0e0e0;
}

/* 底部选项 */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.language-switch, .theme-switch {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-switch::before {
    content: '🌐';
}

.theme-switch::before {
    content: '🌓';
}

/* 深色主题 */
body.dark-theme {
    background: linear-gradient(135deg, #1a237e 0%, #000000 100%);
}

body.dark-theme .login-form {
    background-color: rgba(33, 33, 33, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .login-form h2 {
    color: #64b3f4;
}

body.dark-theme input[type="text"],
body.dark-theme input[type="password"] {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

body.dark-theme .remember-me,
body.dark-theme .options {
    color: #bbb;
}

body.dark-theme .clear-btn {
    background-color: #263238;
    color: #80deea;
}

body.dark-theme .login-btn {
    background-color: #1565c0;
}

body.dark-theme .guest-btn {
    background-color: #424242;
    color: #ddd;
}

body.dark-theme .clear-btn:hover {
    background-color: #37474f;
}

body.dark-theme .login-btn:hover {
    background-color: #0d47a1;
}

body.dark-theme .guest-btn:hover {
    background-color: #616161;
}

/* 备案号样式 */
.footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
}

.icp-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 深色主题下的备案号样式 */
body.dark-theme .icp-link {
    color: rgba(200, 200, 200, 0.7);
}

body.dark-theme .icp-link:hover {
    color: #ffffff;
}
