* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}


body { min-height:100%;    height: 100%; }
body {
   
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
   
    color: #1f2937;
    padding: 40px 20px 60px;
}
.m_logo img { width:100%; display:block}
.page {
   
    margin: 0 auto; 
}
.top {
    text-align: center;
    margin-bottom: 28px;
}
.top h1 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}
.top p {
    font-size: 13px;
    color: #6b7280;
}
.login-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(37, 63, 108, 0.08);
    padding:20px 15px ;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
.form-group input {
    width: 100% !important;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 0 16px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: all 0.2s ease;
}
.form-group input:focus {
    background: #fff;
    border-color: #1a5d48;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
#extra_box {
    transition: opacity 0.25s ease, margin 0.25s ease;
}
#extra_box.hidden-box {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.btn-wrap {
    margin-top: 24px;
}
.tijiao {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #1a5d48 0%, #1a5d48 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.tip {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #9ca3af;
}
/* Toast 提示样式 */
.toast {
    position: fixed;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 80%;
    text-align: center;
}
.toast.show{
    opacity:1;
}
.login .content { padding: 20px; padding-top: 0px; padding-bottom:0px; float:left; width:100%; }
body { height:auto;margin: 0px auto;
    width: 100%;}
.login {padding: 0px; max-width:640px;  }
.bg { background:linear-gradient(to bottom, #dffee9, #a9d8e2); width:100%;float: left;}
.footer { width:100%; display:block;}
.footer img { width:100%; float:left;}
 /* 电子签名模块 */
    .form-item-sign{
        margin:var(--login-gap-block) 0;
    }
    .form-item-sign .sign-label{
        display:block;
        font-size:14px;
        color:var(--fm-text-secondary);
        margin-bottom:8px;
        font-weight:500;
    }
    .sign-wrap{
        width:100%;
    }
    .sign-canvas-box{
        border:1px solid #e5e7eb;
        background:#ffffff;
        border-radius:var(--login-radius);
        overflow:hidden;
                width: 100%;
    border-radius: 8px;
    background: #f9fafb;
    padding: 0px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: all 0.2s ease;
    }
    #signCanvas{
        width:100%;
        touch-action:none;
        display:block;
        width: 100%;

    background: #f9fafb;
    padding: 0px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: all 0.2s ease;
    }
    .sign-btn-group{
        display:flex;
        gap:12px;
        margin-top:14px;
    }
    .sign-btn-group button{
        flex:1;
        height:var(--login-input-height);
        border-radius:var(--login-radius);
        border:1px solid #e5e7eb;
        background:#f9fafb;
        font-size:15px;
        color:#333;
        transition: all 0.2s ease;
    }
    .sign-btn-group button:hover{
        background:#f3f4f6;
    }
    .sign-tip{
        color:var(--fm-text-muted);
        font-size:12px;
        margin-top:8px;
    }
    
    .sign-btn-group{
    display:flex;
    gap:16px;  /*两个按钮间距*/
    margin-top:12px;
}
.sign-btn-group button{
    flex:1;
    height:36px;
    border-radius:3px;
    border:none;
    font-size:14px;
    cursor:pointer;
    transition: 0.2s all;
}
#clearSign{
    background:#f5f7fa;
    color:#333;
    border:1px solid #dcdfe6;
}
#clearSign:hover{
    background:#e9ecef;
}
#saveSign{
    background:#6366f1;
    color:#fff;
}
#saveSign:hover{
    background:#337ecc;
}
#saveSign:active,#clearSign:active{
    opacity:0.85;
}
