﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;    
}
label,input,button,a,li{font-size: 13px;}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-image: url('../images/2017/login_bg.jpg');
    background-size: cover;
    background-position: center;
}

.logo {
    width: 90%;
    max-width: 1000px;
    height: 100px;
    margin-bottom: 20px;
    background: url('../images/2017/logo.png') 20px center no-repeat;
    border-radius: 5px;
    display: flex;
    align-items: center;
    color: #333;
    font-weight: bold;
}

.txt-pal {
    padding-left: 283px;
}

.txt-pal .txt-zn {
    font-weight: bolder;
    font-size: 22px;
    letter-spacing: 4px;
    line-height: 26px;
    font-family: "幼圆", Geneva, sans-serif;
}

.txt-pal .txt-en {
    font-size: 16px;
    line-height: 18px;
}

.container {
    width: 90%;
    max-width: 1000px;
    display: flex;
    gap: 30px;
}

.links-section {
    flex: 1;
    padding: 30px 20px;
    background: rgba(247, 245, 245, 0.29);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow:0px 2px 1px -1px rgba(0,0,0,0.25);
}

.link-group {
    margin-bottom: 20px;
}

.link-group h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 8px;
}

.link-list a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.link-list a:hover {
    opacity: 0.8;
}
.link-list a.link-red { color:red; font: weight 900px; font-size: 16px;}
.login-window {
    width: 388px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow:0px 2px 1px -1px rgba(0,0,0,0.25);
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tab-btn.active, .tab-btn:hover {
    background: #00A89B;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group img {
    width: 88px;
    height: 35px;
    border-radius: 5px;
    vertical-align: middle;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 2px solid #00A89B;
    border-radius: 5px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00DF54;
    background: white;
}

.captcha-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* .captcha-input {
    flex: 1;
} */

.captcha-refresh {
    padding: 10px;
    background: #00A89B;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
}

.verification-link { margin-top: 10px; }

.verification-link a {
    color: #018b36;
    text-decoration: none;
    line-height: 28px;
}

.forgot-password {
    float: right;
    color: #333;
    text-decoration: none;
}

.submit-btn {
    width: 50%;
    padding: 12px;
    background: #00DF54;
    border: none;
    border-radius: 5px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background: #00A89B;
    color: white;
}

.error-message {
    color: #ff4444;
    font-size: 13px;
    margin-top: 5px;
}
.li-link1{text-align:center;margin-top:30px;display: flex;}
.li-link1 a{flex: 1;}

.form-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #00A89B;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 0;
}

#login-form {
    display: block;
}

#register-form {
    display: none;
}

.verification-form {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.verification-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.verification-form-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.verification-form-header p {
    color: #666;
}

.copyright {
    margin-top: 30px;
    color: #666;
    font-size: 13px;
    text-align: center;
}


        .hint {
            color: #666;
            font-size: 12px;
            margin-top: 5px;
        }
        .password-container {
            position: relative;
        }
        .toggle-password {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            width: 24px;
            height: 24px;
        }
        .toggle-password svg {
            width: 100%;
            height: 100%;
            fill: #666;
        }
        .strength-meter {
            height: 5px;
            background-color: #eee;
            margin-top: 10px;
            border-radius: 3px;
            overflow: hidden;
        }
        .strength-meter-fill {
            height: 100%;
            width: 0;
            transition: width 0.3s ease, background-color 0.3s ease;
        }
        .strength-weak {
            background-color: #ff4d4d;
            width: 33%;
        }
        .strength-medium {
            background-color: #ffcc00;
            width: 66%;
        }
        .strength-strong {
            background-color: #4CAF50;
            width: 100%;
        }
        .strength-text {
            font-size: 13px;
            margin-top: 5px;
        }

        
/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #4CAF50;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 消息提示样式 */
.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 80vw;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message.show {
    opacity: 1;
}

.message.info {
    background-color: #2196F3;
    color: white;
}

.message.error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #f5222d;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 5px;
    color: inherit;
}

/* 之前的样式保持不变，新增以下样式 */
.validating {
    position: relative;
}
.validating::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}
.validating.active::after {
    display: block;
}
input.valid {
    border-color: #4CAF50;
}
input.invalid {
    border-color: #f5222d;
}