
/* 全局基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;

    height:100%;background:url(/assets/img/login-background.png) no-repeat center fixed;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    background-size:cover

}

/* 页面背景样式 */
.body-500 {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 登录容器样式 */
.register-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.registerbox {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 标题栏样式 */
.widget {
    width: 100%;
}

.widget-header {
    background-color: #2dc3e8;
    color: white;
    padding: 13px 0px;
    font-weight: bold;
}

.widget-caption {
    font-size: 16px;
}

/* 表单区域样式 */
.widget-body {
    padding: 20px;
}

.widget-main {
    width: 100%;
}

/* 登录表单样式 */
.loginbox-textbox {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.input-icon {
    position: relative;
    display: block;
}

.input-icon input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-icon input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.input-icon i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

/* 记住我和忘记密码样式 */
.loginbox-signup {
    margin-bottom: 20px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.col-sm-6 {
    width: 48%;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox input {
    width: auto;
    margin-right: 5px;
    margin-top: 0;
}

.checkbox a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.checkbox a:hover {
    text-decoration: underline;
}

/* 登录按钮样式 */
.loginbox-submit {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-block {
    width: 100%;
}

/* 模态框标题样式 */
.page-title {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding: 10px;
    border-bottom: 2px solid #3498db;
}

/* 遮罩层样式 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* 弹窗样式 */
.password-modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.password-modal input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.password-modal button {
    background: #667eea;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    margin-top: 10px;
}

.password-modal button:hover {
    background: #5568d3;
}

.password-modal label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

/* 新增强度指示器样式 */
.strength-meter {
    height: 20px;
    background: #eee;
    margin: 5px 0 10px;
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.8em;
    margin-bottom: 5px;
    display: none;
    height: 20px;
}

/* 不同强度等级颜色 */
.weak { background: #ff4757; }
.medium { background: #ffa502; }
.strong { background: #2ed573; }
.very-strong { background: #1e90ff; }

/* 动画效果 */
.animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInDown {
    animation-name: fadeInDown;
}

/* 响应式设计 */
@media (max-width: 500px) {
    .register-container {
        max-width: 100%;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .col-sm-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    .password-modal {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* 表单控件样式 */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* 纯CSS图标样式 */
.icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

/* 用户图标 - 使用Unicode字符 */
.user-icon {
    width: 18px;
    height: 16px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: default;
}

/* 用户图标内容 */
.user-icon::before {
    content: '👤';
    font-size: 18px;
    color: #999;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 眼睛图标 - 经典设计 */
.eye-icon {
    width: 18px;
    height: 12px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    /* 确保没有之前图标的影子 */
    box-shadow: none;
    border: none;
    outline: none;
}

/* 睁眼状态 - 使用Unicode字符 */
.eye-icon::before {
    content: '👁';
    font-size: 18px;
    color: #999;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 闭眼状态 - 使用眼镜Unicode字符 */
.eye-icon.closed::before {
    content: '�';
}

.circular {
    font-size: 16px;
}

/* 背景色类 */
.bg-white {
    background-color: white;
}

.bg-themeprimary {
    background-color: #2dc3e8;
}

/* 边框和形状类 */
.flat {
    box-shadow: none;
}

.radius-bordered {
    border-radius: 8px;
}

/* 选项卡样式 */
.tabbable {
    margin-top: 10px;
}

.tab-content {
    padding: 10px 0;
}

.tabs-flat {
    border-bottom: 1px solid #eee;
}

.tab-pane {
    display: block;
}

.tab-pane.active {
    display: block;
}

/* 辅助类 */
.text {
    color: #666;
    font-size: 14px;
}
