/* 现代化登录页面样式 - 左右分栏布局 */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

/* 主容器 - 左右分栏 */
.signin {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* 左侧 - 背景图区域 */
.login-left {
    flex: 1;
    /* SMT设备背景图 + 统一色调的渐变遮罩 */
    background: linear-gradient(135deg, rgba(15, 32, 50, 0.88) 0%, rgba(20, 45, 70, 0.85) 50%, rgba(15, 35, 55, 0.88) 100%),
                url(../img/smt-background.jpg) no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    background-color: #0f2032;
}

/* 左侧装饰 - 电路板网格 */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(26, 179, 148, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 179, 148, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* 左侧标语 */
.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.login-left-content h1 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.login-left-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 400px;
    line-height: 1.6;
}

/* 右侧 - 登录表单区域 */
.login-right {
    width: 620px;
    min-width: 520px;
    /* 与左侧统一的色调 */
    background: linear-gradient(180deg, #0f2032 0%, #152d45 50%, #0f2032 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 70px 50px 70px;
    position: relative;
}

/* 语言切换器 */
.language-switcher-login {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher-login select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 30px 8px 12px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.language-switcher-login select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.language-switcher-login select:focus {
    outline: none;
    border-color: #1ab394;
}

.language-switcher-login select option {
    background: #1a3a5c;
    color: #fff;
}

/* 登录面板 */
.signinpanel {
    width: 100%;
    max-width: 440px;
}

/* Logo 区域 - 与登录框宽度对齐 */
.login-logo {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.login-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* 毛玻璃表单 */
.signinpanel form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 系统标题 */
.signinpanel h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 8px 0;
}

/* 欢迎文字 */
.signinpanel .m-t-md {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    margin: 0 0 25px 0 !important;
}

/* 输入框样式 */
.signinpanel .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 14px 45px 14px 16px;
    font-size: 14px;
    color: #333;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.signinpanel .form-control:focus {
    background: #fff;
    border-color: #1ab394;
    box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.2);
    outline: none;
}

.signinpanel .form-control::placeholder {
    color: #999;
}

.signinpanel .uname {
    background: rgba(255, 255, 255, 0.9) url(../img/user.png) no-repeat calc(100% - 14px) center;
    background-size: 18px;
}

.signinpanel .uname:focus {
    background: #fff url(../img/user.png) no-repeat calc(100% - 14px) center;
    background-size: 18px;
}

.signinpanel .pword {
    background: rgba(255, 255, 255, 0.9) url(../img/locked.png) no-repeat calc(100% - 14px) center;
    background-size: 18px;
}

.signinpanel .pword:focus {
    background: #fff url(../img/locked.png) no-repeat calc(100% - 14px) center;
    background-size: 18px;
}

/* 登录按钮 */
.signinpanel .btn-success {
    background: linear-gradient(135deg, #1ab394 0%, #17a085 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 179, 148, 0.35);
    letter-spacing: 1px;
}

.signinpanel .btn-success:hover {
    background: linear-gradient(135deg, #17a085 0%, #148f77 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 179, 148, 0.45);
}

.signinpanel .btn-success:active {
    transform: translateY(0);
}

/* 链接区域 */
.signinpanel .text-center {
    margin-top: 18px;
}

.signinpanel .text-center a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.signinpanel .text-center a:hover {
    color: #1ab394;
    background: rgba(26, 179, 148, 0.1);
}

.signinpanel .text-center .text-muted {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
}

/* 页脚样式 - 固定在底部 */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    text-align: center;
    z-index: 100;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 2px 0;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #1ab394;
}

.login-footer img {
    vertical-align: middle;
    margin-right: 5px;
    height: 14px;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .signin {
        flex-direction: column;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        width: 100%;
        min-width: auto;
        min-height: 100vh;
        background: linear-gradient(135deg, #0c1929 0%, #1a3a5c 50%, #0d4f6e 100%);
    }
}

@media screen and (max-width: 480px) {
    .login-right {
        padding: 20px;
    }
    
    .signinpanel {
        max-width: 100%;
    }
    
    .signinpanel form {
        padding: 25px 20px;
    }
    
    .login-logo img {
        height: 50px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signinpanel {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-left-content {
    animation: fadeInLeft 0.6s ease-out;
}
