/* U-NAS管理系统登录页面样式 */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/main_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    position: relative;
}

/* 登录框样式 */
#login-model {
    position: relative;
    z-index: 10;
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

.form-login {
    background-color: rgba(10, 26, 58, 0.8);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 标题样式 */
.form-login .text-center {
    margin-bottom: 30px;
}

.form-login h1 {
    color: white;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
}

/* 输入框组样式 */
.form-label-group {
    position: relative;
    margin-bottom: 20px;
}

.form-label-group input {
    height: 50px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-label-group input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.form-label-group label {
    position: absolute;
    top: 0;
    left: 15px;
    display: block;
    width: auto;
    margin-bottom: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
    border-radius: .25rem;
    transition: all .1s ease-in-out;
    padding: 13px 0;
    font-size: 16px;
    pointer-events: none;
}

.form-label-group input::-webkit-input-placeholder {
    color: transparent;
}

.form-label-group input:-ms-input-placeholder {
    color: transparent;
}

.form-label-group input::-ms-input-placeholder {
    color: transparent;
}

.form-label-group input::-moz-placeholder {
    color: transparent;
}

.form-label-group input::placeholder {
    color: transparent;
}

.form-label-group input:not(:placeholder-shown) {
    padding-top: 25px;
    padding-bottom: 10px;
}

.form-label-group input:not(:placeholder-shown) ~ label {
    padding-top: 7px;
    padding-bottom: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 记住我复选框 */
.form-check {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-top: 0;
    margin-right: 8px;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 按钮样式 */
.btn-group.full {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.btn-primary {
    background-color: #4e8cff;
    border-color: #4e8cff;
    color: white;
    font-size: 16px;
    height: 46px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #3a7dff;
    border-color: #3a7dff;
    box-shadow: 0 0 0 0.2rem rgba(78, 140, 255, 0.5);
}

.btn-outline-secondary {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    margin-top: 5px;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #login-model {
        width: 95%;
        max-width: 350px;
    }
    
    .form-login {
        padding: 20px;
    }
    
    .form-login h1 {
        font-size: 24px;
    }
    
    .form-label-group input {
        height: 45px;
    }
}

@media (max-width: 480px) {
    #login-model {
        width: 90%;
        max-width: 300px;
        transform: scale(0.95);
    }
    
    .form-login {
        padding: 15px;
    }
    
    .form-login h1 {
        font-size: 20px;
    }
    
    .form-label-group input {
        height: 40px;
        font-size: 14px;
    }
    
    .form-label-group label {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .btn-primary {
        height: 40px;
        font-size: 14px;
    }
    
    .btn-outline-secondary {
        font-size: 12px;
    }
}