/* 覆盖整个页面的背景 */
.overlay-logon {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 更深的遮罩，突出弹窗 */
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
/* 登录框容器 */
.login-box-logon {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d); /* 渐变黑灰背景 */
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    color: white;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn-logon {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: transparent;
    /*background: rgba(255, 255, 255, 0.1);*/
    border: none;
    font-size: 18px;
    width: 50px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fas{
    color: white;
}
/* 关闭按钮 */
.close-btn-logon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #aaa;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn-logon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Logo */
.logo-logon {
    width: 160px;
    margin: 10px auto 25px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 分隔线 */
.divider-logon {
    width: 90%;
    /*max-width: 350px;*/
    border-top: 1.5px solid rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    position: relative;
}

.divider-logon span {
    width: 160px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 0 12px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 500;
    color: #ccc;

}

/* Tab切换按钮组 */
.switch-buttons-logon {
    display: flex;
    width: fit-content;
    margin: 25px auto;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab-btn.active-logon {
    background: white;
    color: black;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 输入框容器 */
.input-container-logon {
    margin: 25px 0;
    width: 100%;
}

/* 统一输入框样式 */
.input-field-logon,
.input-fieldd-logon {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.input-field-logon:focus,
.input-fieldd-logon:focus {
    border-bottom-color: #00aaff;
    background: rgba(0, 170, 255, 0.05);
}

/* 验证码输入组 */
.input-container-logon > div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.input-fieldd-logon {
    flex: 1;
    margin: 0;
}

.get-code-logon {
    padding: 12px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #00aaff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.get-code-logon:hover:not(:disabled) {
    background: rgba(0, 170, 255, 0.2);
}

.get-code-logon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 登录按钮 */
.login-btn-logon {
    width: 100%;
    padding: 14px;
    margin: 20px 0 10px;
    border: none;
    background: linear-gradient(90deg, #00aaff, #0077ff);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn-logon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* 描述文字 */
.description-logon {
    width: 100%;
    margin: 20px auto 0;
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
    text-align: center;
}

.policy-logon {
    color: #00aaff;
    cursor: pointer;
    text-decoration: underline;
}

/* 错误/成功提示 */
.login-box-logon p {
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    margin-bottom: 15px;
}


.login-box-logon p[style*="color: green"] {
    border-left: 3px solid #52c41a;
}
