@font-face {
    font-family: "FontAwesome";
    src: url("../libs/font-awesome/fonts/fontawesome-webfont.woff2") format("woff2"),
        url("../libs/font-awesome/fonts/fontawesome-webfont.woff") format("woff"),
        url("../libs/font-awesome/fonts/fontawesome-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html,
body {
    height: 100%;
}

body {
    background: #061b3d !important;
    color: #172033;
    font-family: "SF Pro SC", "PingFang SC", "Microsoft Yahei", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    padding-top: 56px !important;
    overflow: hidden;
}

body * {
    letter-spacing: 0;
}

body .fa {
    font-family: "FontAwesome";
}

.navbar.navbar-inverse.navbar-fixed-top {
    min-height: 56px;
    border: 0;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 1px 0 rgba(216, 225, 236, .85);
    backdrop-filter: blur(12px);
}

.navbar-inverse .navbar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
}

.navbar-inverse .navbar-brand {
    display: inline-flex;
    align-items: center;
    float: none;
    height: 56px;
    margin: 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 56px;
    white-space: nowrap;
}

.navbar-inverse .navbar-brand img {
    width: 30px !important;
    height: 30px;
    display: block;
    object-fit: contain;
}

.navbar-inverse .navbar-header > div.navbar-brand {
    flex: 0 0 30px;
}

.navbar-inverse .navbar-header > a.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.navbar-inverse .navbar-nav > li > a {
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
    color: #526071 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 56px;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #1269e8 !important;
    background: transparent !important;
}

.navbar-inverse .navbar-toggle {
    margin-top: 11px;
    border-color: #d7dee8;
    border-radius: 6px;
    background: #fff;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background: #334155;
}

main.content {
    height: calc(100vh - 56px);
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    background: #061b3d;
}

.auth-page {
    position: relative;
    height: calc(100vh - 56px);
    min-height: 0;
    padding: 24px 20px 28px;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #061b3d;
    background-image: url("../img/zcdl.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-page:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 16, 42, .84), rgba(4, 26, 61, .62) 48%, rgba(2, 16, 42, .82)),
        linear-gradient(180deg, rgba(2, 16, 42, .24), rgba(2, 16, 42, .7));
}

.auth-page:after {
    display: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    height: 100%;
    margin: 0 auto !important;
}

.auth-login .auth-container {
    height: auto;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(380px, 1fr);
    overflow: hidden;
    border: 1px solid rgba(216, 225, 236, .96);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 28px 70px rgba(31, 41, 55, .14);
}

.auth-register .auth-container {
    max-width: 1180px;
}

.auth-register .auth-shell {
    grid-template-columns: minmax(320px, 390px) minmax(560px, 1fr);
    align-items: stretch;
    height: 100%;
}

.auth-brand-panel {
    position: relative;
    min-height: 520px;
    padding: 42px;
    overflow: hidden;
    background: #101828;
    color: #fff;
}

.auth-brand-panel:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(18, 105, 232, .22), transparent 38%),
        linear-gradient(315deg, rgba(18, 183, 106, .18), transparent 46%);
    opacity: .95;
}

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}

.auth-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 46px;
    font-size: 18px;
    font-weight: 800;
}

.auth-lockup img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    color: #b7d8ff;
    font-size: 12px;
    font-weight: 700;
}

.auth-brand-panel h1 {
    max-width: 300px;
    margin: 0 0 16px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
}

.auth-brand-panel p {
    max-width: 305px;
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}

.auth-data-board {
    margin-top: 42px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.auth-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.auth-data-row:last-child {
    border-bottom: 0;
}

.auth-data-row span {
    color: #cbd5e1;
    font-size: 13px;
}

.auth-data-row strong {
    color: #fff;
    font-size: 16px;
}

.auth-card {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 520px;
    margin: 0 !important;
    padding: 40px 46px !important;
    overflow-x: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: none !important;
}

.auth-register .auth-card {
    max-height: none;
    overflow: visible !important;
    padding: 34px 42px !important;
}

/* Keep the full registration flow inside the first viewport on desktop. */
.auth-register .auth-card {
    height: 100% !important;
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 24px 38px !important;
}

.auth-register .auth-card::-webkit-scrollbar {
    width: 6px;
}

.auth-register .auth-card::-webkit-scrollbar-track {
    background: #eef2f6;
}

.auth-register .auth-card::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #aebdce;
}

.auth-register .auth-card {
    scrollbar-color: #aebdce #eef2f6;
    scrollbar-width: thin;
}

.auth-register .auth-card-header,
.auth-register .card-header {
    margin-bottom: 12px;
}

.auth-register .card-header h1,
.auth-register #div1 {
    font-size: 24px !important;
}

.auth-register .card-header h4,
.auth-register #div2 {
    font-size: 12px !important;
    line-height: 1.5;
}

.auth-register #register-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 0;
    align-content: start;
}

.auth-register #register-form > .form-group {
    min-width: 0;
    margin-bottom: 8px !important;
}

.auth-register #register-form > .system-selection,
.auth-register #register-form > .erp-status-selection,
.auth-register #register-form > .h5-status-selection,
.auth-register #register-form > .agreement-checkbox,
.auth-register #register-form > .form-group:last-child {
    grid-column: 1 / -1;
}

.auth-register #register-form .control-label {
    margin-bottom: 4px !important;
    font-size: 12px !important;
}

.auth-register #register-form .form-control,
.auth-register #register-form .input-lg,
.auth-register #register-form .sp_container input {
    height: 38px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.auth-register #register-form .system-grid,
.auth-register #register-form .radio-grid {
    gap: 6px !important;
}

.auth-register #register-form .system-label,
.auth-register #register-form .radio-label {
    min-height: 34px;
    padding: 6px 10px !important;
    font-size: 12px;
}

.auth-register #register-form .agreement-checkbox {
    margin-bottom: 10px !important;
}

.auth-register #register-form .btn-info,
.auth-register #register-form .btn.btn-info {
    height: 40px;
}

.auth-register > .copyright {
    display: none;
}

.logon-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.logon-tab a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d8e1ec;
    border-radius: 999px;
    background: #f5f7fb;
    color: #526071;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.logon-tab a.active {
    border-color: #1269e8;
    background: #1269e8;
    color: #fff;
    box-shadow: 0 10px 20px rgba(18, 105, 232, .18);
}

.login-main {
    width: 100% !important;
    margin: 0 !important;
}

.auth-card-header,
.card-header {
    margin-bottom: 22px;
    text-align: left !important;
}

.auth-card-header span {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #eef6ff;
    color: #1269e8;
    font-size: 12px;
    font-weight: 700;
}

.auth-card-header h2,
.card-header h1,
#div1 {
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.25;
    text-align: left !important;
}

.auth-card-header p,
.card-header h4,
#div2 {
    margin: 0 !important;
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.8;
    text-align: left !important;
}

.form-group {
    margin-bottom: 18px !important;
}

.form-group label,
.control-label {
    margin-bottom: 8px !important;
    color: #344054 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.text-red {
    color: #f04438 !important;
}

.form-control,
.input-lg,
.sp_container input {
    width: 100% !important;
    height: 46px !important;
    padding: 11px 14px !important;
    border: 1px solid #d8e1ec !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus,
.input-lg:focus,
.sp_container input:focus {
    border-color: #1269e8 !important;
    box-shadow: 0 0 0 3px rgba(18, 105, 232, .12) !important;
    outline: none !important;
}

.help-block,
.msg-box {
    margin: 6px 0 0 !important;
    color: #98a2b3 !important;
    font-size: 12px !important;
}

/* Nice Validator defaults to a right-side floating message. Keep auth errors
   in the form flow so they remain visible on narrow cards and small screens. */
.auth-page .nice-validator .msg-container,
.auth-page .nice-validator .n-right,
.auth-page .nice-validator .n-bottom {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 5px 0 0 !important;
    line-height: 16px !important;
    vertical-align: initial !important;
}

.auth-page .nice-validator .msg-wrap,
.auth-page .nice-validator .n-right .msg-wrap,
.auth-page .nice-validator .n-bottom .msg-wrap {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    white-space: normal !important;
}

.auth-page .nice-validator .n-arrow {
    display: none !important;
}

.auth-page .nice-validator .n-error {
    display: block !important;
    padding: 0 2px !important;
    color: #d92d20 !important;
    font-size: 12px !important;
    line-height: 16px !important;
}

.checkbox.inline label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #667085 !important;
    font-weight: 500 !important;
}

.checkbox.inline input {
    margin: 0 !important;
}

.btn-info,
.btn.btn-info {
    height: 46px;
    border: 0 !important;
    border-radius: 6px !important;
    background: #1269e8 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 28px rgba(18, 105, 232, .22) !important;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-info:hover:not(:disabled),
.btn.btn-info:hover:not(:disabled) {
    background: #0f5fd2 !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(18, 105, 232, .28) !important;
}

.btn-info:disabled,
.btn.btn-info:disabled {
    background: #cbd5e1 !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.system-grid,
.radio-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.system-checkbox,
.radio-input,
.checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.system-label,
.radio-label,
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #d8e1ec;
    border-radius: 6px;
    background: #fff;
    color: #344054 !important;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.system-checkbox:checked + .system-label,
.radio-input:checked + .radio-label,
.checkbox-input:checked + .checkbox-label {
    border-color: #1269e8;
    background: #eef6ff;
    box-shadow: 0 8px 18px rgba(18, 105, 232, .1);
}

.checkbox-icon,
.radio-icon {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #c6d3e1;
    border-radius: 5px;
    background: #fff;
    color: #1269e8;
}

.radio-icon {
    border-radius: 50%;
}

.radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.radio-input:checked + .radio-label .radio-dot {
    background: #1269e8;
}

.system-checkbox:checked + .system-label .checkbox-icon,
.checkbox-input:checked + .checkbox-label .checkbox-icon {
    border-color: #1269e8;
    background: #1269e8;
    color: #fff;
}

.checkbox-container,
.checkbox-option {
    width: 100%;
}

.agreement-link {
    color: #1269e8 !important;
    font-weight: 800;
}

#oa-domain-info {
    border-left-color: #1269e8 !important;
    background: #eef6ff !important;
}

.auth-page .fk_service {
    display: none !important;
}

.auth-page > .copyright {
    position: relative;
    z-index: 1;
    margin: 5px 0 !important;
    color: #667085 !important;
    font-size: 13px !important;
    text-align: center !important;
}

.auth-page > .copyright:first-of-type {
    margin-top: 20px !important;
}

@media (max-width: 991px) {
    .auth-page {
        padding: 26px 15px 24px;
    }

    .auth-page:after {
        display: none;
    }

    .auth-shell,
    .auth-register .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 30px;
    }

    .auth-brand-panel h1 {
        max-width: none;
        font-size: 28px;
    }

    .auth-brand-panel p {
        max-width: none;
    }

    .auth-data-board {
        margin-top: 24px;
    }

    .auth-card,
    .auth-register .auth-card {
        max-height: none;
        min-height: 0;
        padding: 28px !important;
        overflow-y: visible !important;
    }
}

@media (max-width: 767px) {
    .navbar.navbar-inverse.navbar-fixed-top,
    .navbar-inverse .navbar-header {
        min-height: 58px;
    }

    .navbar-inverse .navbar-brand,
    .navbar-inverse .navbar-nav > li > a {
        min-height: 58px;
        line-height: 58px;
    }

    .navbar-inverse .navbar-collapse {
        border-top: 1px solid #e5eaf0;
        background: #fff;
        box-shadow: 0 14px 28px rgba(31, 41, 55, .08);
    }

    .auth-page {
        padding: 22px 12px 20px;
    }

    .auth-shell {
        border-radius: 8px;
    }

    .auth-brand-panel {
        padding: 24px;
    }

    .auth-lockup {
        margin-bottom: 26px;
    }

    .auth-brand-panel h1 {
        font-size: 24px;
    }

    .auth-card,
    .auth-register .auth-card {
        padding: 24px 18px !important;
    }

    .system-grid,
    .radio-grid {
        grid-template-columns: 1fr !important;
    }

    .auth-card-header h2,
    .card-header h1,
    #div1 {
        font-size: 24px !important;
    }
}
