/* 登录页面现代化样式 */

/* 全局样式 */
body.login {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.wrapper-login {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 容器样式 */
.container-login, .container-signup {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    max-width: 450px;
    width: 100%;
    transition: all 0.3s ease;
}

/* 默认隐藏注册界面 */
.container-signup {
    display: none;
}

.container-login:hover, .container-signup:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* 标题和Logo样式 */
.container-login h3, .container-signup h3 {
    margin-bottom: 25px;
    color: #444;
    font-weight: 600;
}

.container-login img, .container-signup img {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.container-login img:hover, .container-signup img:hover {
    transform: scale(1.05);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    height: 45px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #6777ef;
    box-shadow: 0 0 0 2px rgba(103, 119, 239, 0.2);
    background-color: #fff;
}

.form-control::placeholder {
    color: #aaa;
    font-size: 13px;
}

/* 验证码样式 */
.input-group {
    margin-top: 10px;
}

#v_container {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#v_container:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn {
    height: 45px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #6777ef 0%, #4e66f8 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4e66f8 0%, #3955f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* 链接样式 */
.form-sub a, .login-regist {
    color: #6777ef;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-sub a:hover, .login-regist:hover {
    color: #4e66f8;
    text-decoration: none;
}

/* 复选框样式 */
.custom-control-label {
    font-size: 14px;
    color: #666;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #6777ef;
    border-color: #6777ef;
}

/* 动画效果 */
.animated {
    animation-duration: 0.6s;
}

@keyframes shake_effect {
    0%, 100% {transform: translateX(0);}
    20%, 60% {transform: translateX(-10px);}
    40%, 80% {transform: translateX(10px);}
}

.shake_effect {
    animation: shake_effect 0.5s;
}

/* 注册须知弹窗样式 */
.web_notice > div {
    border-radius: 15px !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    padding: 30px !important;
}

.web_notice h3 {
    color: #6777ef;
    margin-bottom: 20px;
}

.web_notice a {
    background: linear-gradient(135deg, #6777ef 0%, #4e66f8 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.web_notice a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .container-login, .container-signup {
        padding: 20px;
        margin: 15px;
    }
    
    .btn {
        height: 42px;
        font-size: 14px;
    }
    
    .form-control {
        height: 42px;
    }
}