html {
    height: 100%;
}

body.signin {
    height: auto;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/background.jpg) no-repeat center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.signinpanel {
    width: 750px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-in-out;
}

.signinpanel .logopanel {
    float: none;
    width: auto;
    padding: 0;
    background: 0;
    text-align: center;
    margin-bottom: 30px;
}

.signinpanel .signin-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.signinpanel .form-control {
    display: block;
    margin-top: 15px;
    height: 45px;
    padding: 10px 15px;
    font-size: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.signinpanel .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.signinpanel .uname {
    background: #fff url(../img/user.png) no-repeat 95% center;
    color: #333;
    padding-left: 15px;
}

.signinpanel .pword {
    background: #fff url(../img/locked.png) no-repeat 95% center;
    color: #333;
    padding-left: 15px;
}

.signinpanel .code {
    background: #fff no-repeat 95% center;
    color: #333;
    margin: 0 0 15px 0;
    padding-left: 15px;
}

.signinpanel .btn {
    margin-top: 15px;
    height: 45px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    background-color: #3498db;
    border: none;
}

.signinpanel .btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.signinpanel .btn:active {
    transform: translateY(0);
}

.signinpanel form {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.signinpanel form:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.signup-footer {
    border-top: solid 1px rgba(255, 255, 255, 0.3);
    margin: 20px 0;
    padding-top: 15px;
    text-align: center;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .signinpanel, .signuppanel {
        width: 90% !important;
        padding: 20px;
    }

    .signinpanel form {
        margin-top: 20px;
        padding: 20px;
    }

    .signup-footer, .signuppanel .form-control {
        margin-bottom: 10px;
    }

    .signup-footer .pull-left,
    .signup-footer .pull-right {
        float: none !important;
        text-align: center;
        display: block;
    }

    .signinpanel .signin-info ul {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .signinpanel, .signuppanel {
        margin: 0 15px;
        width: auto !important;
    }

    .signinpanel .form-control {
        height: 40px;
        font-size: 14px;
    }

    .signinpanel .btn {
        height: 40px;
        font-size: 15px;
    }
}

/* 自定义复选框样式 */
.checkbox-custom {
    position: relative;
    padding: 0 15px 0 25px;
    margin-bottom: 15px;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    z-index: 2;
    margin: -6px 0 0 0;
    top: 50%;
    left: 3px;
}

.checkbox-custom label:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -9px;
    width: 18px;
    height: 17px;
    display: inline-block;
    border-radius: 3px;
    border: 1px solid #bbb;
    background: #fff;
    transition: all 0.2s;
}

.checkbox-custom input[type="checkbox"]:checked + label:before {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
    position: absolute;
    display: inline-block;
    font-family: 'FontAwesome';
    content: "\f00c";
    top: 42%;
    left: 4px;
    margin-top: -5px;
    font-size: 11px;
    line-height: 1;
    width: 16px;
    height: 16px;
    color: white;
}

.checkbox-custom label {
    cursor: pointer;
    line-height: 1.5;
    font-weight: normal;
    margin-bottom: 0;
    text-align: left;
    color: white;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 验证码区域样式 */
.code-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.code-input {
    flex: 1;
}

.code-img {
    width: 100px;
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.code-img:hover {
    opacity: 0.8;
}