@charset "utf-8";
/* nh 环境登录页移动端样式
 * 只在 html.m-mobile 下生效，PC 端样式与结构保持原样。
 * 根元素 font-size: 16px，移动端尺寸统一使用 rem。
 */

/* ---------- 默认（PC）隐藏移动端专用元素 ---------- */
.m-landing,
.m-form-head,
.m-label,
.m-eye,
.m-lang {
    display: none;
}

html.m-mobile {
    font-size: 16px;
}

html.m-mobile,
html.m-mobile body {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100%;
    height: auto !important;
}

html.m-mobile body {
    margin: 0;
    overflow-x: hidden;
    background: #fff !important;
    -webkit-text-size-adjust: 100%;
}

/* ---------- 落地页 ---------- */
html.m-mobile .m-landing {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    box-sizing: border-box;
    flex-direction: column;
    padding: 1.5rem;
    color: #2a6a8d;
    background: #cfe8ee url(../images/nh-login-mobile-bg.png) no-repeat center top;
    background-size: cover;
}

html.m-mobile.m-login-open .m-landing {
    display: none;
}

html.m-mobile .m-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 1.5rem;
    font-size: 0.875rem;
}

html.m-mobile .m-top-link {
    margin-right: 1rem;
    color: #2a6a8d;
    font-size: 0.875rem;
    line-height: 1.5rem;
    text-decoration: underline;
}

html.m-mobile .m-lang {
    display: block;
    position: relative;
}

html.m-mobile .m-lang-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1.5rem;
    cursor: pointer;
}

html.m-mobile .m-globe {
    width: 1rem;
    height: 1rem;
    margin-right: 0.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

html.m-mobile .m-lang-menu {
    display: none;
    position: absolute;
    top: 1.75rem;
    right: 0;
    min-width: 7.5rem;
    padding: 0.25rem 0;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.18);
    z-index: 10;
}

html.m-mobile .m-lang-open .m-lang-menu {
    display: block;
}

html.m-mobile .m-lang-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}

/* 南华 logo：图片独立于背景图，避免背景 cover 裁切时丢失 */
html.m-mobile .m-brand {
    display: block;
    position: absolute;
    top: 7.16rem;
    left: 0;
    right: 0;
    margin: auto;
    width: 12rem;
    height: auto;
}

/* 供应商资质 logo：底部一行，独立于背景图 */
html.m-mobile .m-partners {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    margin: auto auto 2rem;
}

html.m-mobile .m-partners img {
    display: block;
    width: auto;
}

html.m-mobile .m-partner-iata {
    height: 2rem;
}

html.m-mobile .m-partner-tic,
html.m-mobile .m-partner-hata {
    height: 2.3rem;
}

html.m-mobile .m-partner-pci {
    height: 2.2rem;
}

html.m-mobile .m-landing-main {
    padding-top: 28vh;
    text-align: center;
}

html.m-mobile .m-title-head {
    margin: 0 0 1rem;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 700;
    color: #2a6a8d;
}

html.m-mobile .m-slogan {
    max-width: 20rem;
    margin: 0 auto 4.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #7fa1b0;
}

html.m-mobile .m-enter {
    display: block;
    width: 100%;
    height: 3.5rem;
    border: 0;
    border-radius: 0.625rem;
    background: linear-gradient(180deg, #3399cc 0%, #105079 100%);
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
}

/* ---------- 登录表单 ---------- */
html.m-mobile .nh-head,
html.m-mobile .nh-title,
html.m-mobile .nh-footer {
    display: none !important;
}

html.m-mobile .nh-form-wrap {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

html.m-mobile #toLogin {
    width: 100% !important;
}

html.m-mobile .m-form-head {
    display: flex;
    align-items: center;
    height: 3.5rem;
    margin: 1rem 0 1.5rem;
}

html.m-mobile .m-back {
    display: block;
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: #222;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: left;
    cursor: pointer;
}

html.m-mobile .m-form-head .m-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
}

html.m-mobile #toLogin .m-field {
    position: relative;
    margin: 0 0 0.875rem !important;
    padding: 0.625rem 1rem 0.75rem;
    box-sizing: border-box;
    background: #f4f4f4;
    border-radius: 1rem;
}

html.m-mobile #toLogin .m-field input {
    display: block;
    width: 100% !important;
    height: 1.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 1rem !important;
    line-height: 1.75rem;
    outline: none;
}

html.m-mobile #toLogin input::placeholder {
    color: transparent !important;
}

html.m-mobile .m-label {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #9b9b9b;
}

html.m-mobile .m-eye {
    display: block;
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

html.m-mobile .m-eye svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: #9b9b9b;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html.m-mobile .m-eye .m-eye-slash {
    display: none;
}

html.m-mobile .m-eye.m-eye-on .m-eye-slash {
    display: inline;
}

html.m-mobile #toLogin .m-forget {
    display: block;
    float: none !important;
    width: auto !important;
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
    text-align: right;
    font-size: 0.875rem !important;
    color: #9b9b9b !important;
    text-decoration: underline;
}

html.m-mobile #toLogin .wrongDiv {
    margin: 0 0 0.5rem !important;
    font-size: 0.875rem !important;
}

html.m-mobile #toLogin .btnLogin {
    display: block;
    width: 100% !important;
    height: 3.5rem !important;
    border: 0 !important;
    border-radius: 0.625rem !important;
    background: linear-gradient(180deg, #3399cc 0%, #105079 100%) !important;
    color: #fff !important;
    font-size: 1.125rem !important;
    cursor: pointer;
}
