/* ==========================================
   三合旺管理系统 - 高端晶莹玻璃态登录界面 (Glassmorphism Premium Login)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.signin {
    display: flex;
    flex-direction: column; /* ⭐ 改变为主轴为垂直，以便完美分离页脚 */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Inter', 'Outfit', -apple-system, sans-serif;
    color: #f8fafc;
    background: linear-gradient(135deg, #090d16 0%, #111827 40%, #1e1b4b 75%, #311042 100%);
    background-size: 400% 400%;
    animation: auroraBG 20s ease infinite;
    position: relative;
    overflow: hidden;
}

/* 装饰性极光光球 */
body.signin::before, body.signin::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}
body.signin::before {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    top: -10%;
    left: -10%;
    animation: floatOrb1 15s ease-in-out infinite alternate;
}
body.signin::after {
    width: 500px;
    height: 500px;
    background: #ec4899;
    bottom: -15%;
    right: -10%;
    animation: floatOrb2 18s ease-in-out infinite alternate;
}

@keyframes auroraBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}
@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -60px) scale(1.2); }
}

.signinpanel {
    position: relative;
    z-index: 10;
    width: 1000px;
    max-width: 95%;
    margin: auto 0; /* 垂直方向通过 auto 居中，避开页脚 */
    padding: 40px 0;
}

/* 修复顶级 Row 布局，隔离内部验证码 Row */
.signinpanel > .row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    gap: 60px;
}

.signinpanel .col-sm-7 {
    width: calc(50% - 30px);
    padding-right: 0px;
}
.signinpanel .col-sm-5 {
    width: calc(50% - 30px);
}

/* 欢迎语及主标题 */
.signinpanel .signin-info h4 {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 24px !important;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}
.signinpanel .signin-info h4 strong {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #818cf8 !important;
    background: none !important;
    display: inline-block;
    margin-left: 8px;
}

/* 玻璃态登录表单 */
.signinpanel form {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    padding: 40px !important;
    color: #f8fafc !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signinpanel form:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(129, 140, 248, 0.2) !important;
}

.signinpanel form h4.no-margins {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.5px;
}
.signinpanel form p.m-t-md {
    font-size: 13px;
    color: #94a3b8 !important;
    margin-bottom: 24px !important;
}

/* ⭐ 修复验证码输入框与图片的横向排列 (绝对对齐) */
.signinpanel form .row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    /*gap: 16px !important;*/
    width: 100% !important;
    box-sizing: border-box !important;
}
.signinpanel form .row > div {
    flex: 1 !important;
    width: 100% !important;
    max-width: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.signinpanel form .row > div input {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 输入框高端设计：提升对比度与质感 */
.signinpanel .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    height: 48px !important;
    font-size: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.signinpanel .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.signinpanel .uname {
    background: rgba(255, 255, 255, 0.08) url(../img/user.png) no-repeat 95% center !important;
    background-size: 16px !important;
}
.signinpanel .pword {
    background: rgba(255, 255, 255, 0.08) url(../img/locked.png) no-repeat 95% center !important;
    background-size: 16px !important;
}

.signinpanel .form-control:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.25) !important;
    outline: none !important;
}

/* 验证码图片对齐 */
.signinpanel .imgcode {
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 48px !important;
    width: 100% !important;
    object-fit: fill !important;
    display: block !important;
}

/* ⭐ 修复“记住我”复选框 */
.checkbox-custom {
    position: relative;
    margin: 12px 0 32px 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    margin: 0;
    z-index: -1;
    width: 0;
    height: 0;
}
.checkbox-custom label {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    user-select: none;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    cursor: pointer;
    position: relative;
}
.checkbox-custom label:before {
    content: "";
    position: relative !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    transition: all 0.2s;
    display: inline-block !important;
    flex-shrink: 0;
}
.checkbox-custom input[type="checkbox"]:checked + label:before {
    background: #818cf8 !important;
    border-color: #818cf8 !important;
}
.checkbox-custom input[type="checkbox"]:checked + label:after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: bold;
}

/* 渐变流光提交按钮 */
.signinpanel .btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
}
.signinpanel .btn:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(99, 102, 241, 0.7) !important;
}

/* ⭐ 修复底部版权声明穿透登录框的问题 */
.signup-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100%;
    text-align: center;
    z-index: 10;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 0 !important;
    background: rgba(9, 13, 22, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}
.signup-footer .pull-left {
    float: none !important;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6) !important;
}

@media screen and (max-width: 768px) {
    .signinpanel > .row {
        flex-direction: column !important;
    }
    .signinpanel .col-sm-7, .signinpanel .col-sm-5 {
        width: 100% !important;
        padding: 0 !important;
    }
    .signinpanel .signin-info {
        text-align: center;
        margin-bottom: 30px;
    }
}
