/* ============================================================
       项目：湖州市区域绿色交易中心 - 登录页
       文件：hzlogin.html
       规范：
         - 组件命名遵循 BEM 规范 (Block__Element--Modifier)
         - 颜色 / 间距变量集中管理
         - 建议拆分：
             css/base.css    → Reset + 变量 + 工具类
             css/layout.css  → 页面级布局
             css/components.css → 各组件样式
             js/hzlogin.js   → 交互逻辑
       ============================================================ */

    /* ---------- Design Tokens ---------- */
    :root {
      /* 主色 */
      --color-primary: #028446;
      --color-primary-dark: #0f8b44;
      --color-primary-light: #83c237;

      /* 背景 */
      --color-bg-left: #eaf1f7;
      --color-white: #ffffff;

      /* 文字 */
      --color-text-title: #2e3033;
      --color-text-body: #646464;
      --color-text-muted: #969696;
      --color-text-placeholder: #bdbdbd;
      --color-text-input: #333333;
      --color-icon-gray: #4e5463;

      /* 边框 */
      --color-border-active: #028446;
      --color-border-default: #dcdfe2;
      --color-border-light: #e6e6e6;
      --color-divider: #000000;

      /* 字体栈 */
      --font-family: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;

      /* 圆角 */
      --radius-pill: 48px;
      --radius-card: 5.58px;

      /* 过渡 */
      --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ---------- Reset & Base ---------- */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      width: 100%;
      height: 100%;
      font-family: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
      font-family: var(--font-family);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
    }

    button, input {
      font-family: inherit;
      outline: none;
      border: none;
      background: none;
    }

    button { cursor: pointer; }

    input::-webkit-input-placeholder { color: #bdbdbd; }
    input::-webkit-input-placeholder { color: var(--color-text-placeholder); }
    input::-moz-placeholder          { color: #bdbdbd; }
    input::-moz-placeholder          { color: var(--color-text-placeholder); }
    input:-ms-input-placeholder      { color: #bdbdbd; }
    input:-ms-input-placeholder      { color: var(--color-text-placeholder); }

	.hidden {
	  display: none !important;
	}
    /* ---------- Layout: Login Page ---------- */
    .l-login {
      display: flex;
      width: 100%;
      min-height: 100vh;
      background: #ffffff;
      background: var(--color-white);
      overflow: hidden;
    }

    /* ---------- Component: Login Left ---------- */
    .c-login-left {
      position: relative;
      flex: 0 0 1160px;
      min-height: 100vh;
      background-color: #eaf1f7;
      background-color: var(--color-bg-left);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
    }

    .c-login-left__bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('../images/loginimg/login-bg.png') no-repeat center center;
      background-size: cover;
      z-index: 0;
    }

    .c-login-left__content {
      position: relative;
      z-index: 1;
      padding: 43px 0 0 58px;
    }

    /* ---------- Component: Brand ---------- */
    .c-brand {
      display: flex;
      align-items: center;
      gap: 22.5px;
    }

    .c-brand__logo {
      width: 80px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .c-brand__logo img {
      width: 80px;
      height: 60px;
      display: block;
    }

    .c-brand__text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0;
    }

    .c-brand__title {
      font-size: 39px;
      font-weight: 700;
      color: #ffffff;
      color: var(--color-white);
      letter-spacing: 3.12px;
      line-height: 56px;
      white-space: nowrap;
    }

    .c-brand__subtitle {
      font-size: 18px;
      font-weight: 300;
      color: #ffffff;
      color: var(--color-white);
      letter-spacing: 1.98px;
      line-height: 25px;
      white-space: nowrap;
    }

    /* ---------- Component: Login Footer ---------- */
    .c-login-footer {
      position: relative;
      z-index: 1;
      padding: 0 148px;
      margin-bottom: 33px;
      display: flex;
      gap: 20px;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      color: var(--color-white);
      line-height: 20px;
      white-space: nowrap;
    }

    /* ---------- Component: Login Right ---------- */
    .c-login-right {
      position: relative;
      flex: 0 0 760px;
      min-height: 100vh;
      background: #ffffff;
      background: var(--color-white);
      border-radius: 5.58px;
      border-radius: var(--radius-card);
      border: 1.4px solid #ffffff;
      border: 1.4px solid var(--color-white);
      display: flex;
      flex-direction: column;
    }

    /* ---------- Component: Back Button ---------- */
    .c-back-btn {
      position: absolute;
      top: 22px;
      left: 26px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 4px 16px;
      height: 31px;
      border: 1px solid #028446;
      border: 1px solid var(--color-primary);
      border-radius: 48px;
      border-radius: var(--radius-pill);
      background: transparent;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
      z-index: 2;
    }

    .c-back-btn:hover {
      background: rgba(2, 132, 70, 0.06);
    }

    .c-back-btn:active {
      background: rgba(2, 132, 70, 0.12);
    }

    .c-back-btn__icon {
      width: 18px;
      height: 17px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .c-back-btn__icon img {
      width: 100%;
      height: 100%;
      display: block;
    }

    .c-back-btn__text {
      font-size: 16px;
      font-weight: 400;
      color: #028446;
      color: var(--color-primary);
      line-height: 23px;
    }

    /* ---------- Component: Login Form Wrapper ---------- */
    .c-form-wrapper {
      width: 501px;
      margin: 0 auto;
      padding-top: 191.5px;
    }

    /* ---------- Component: Login Header ---------- */
    .c-login-header {
      width: 264px;
      margin: 0 auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .c-login-header__title {
      font-size: 42px;
      font-weight: 700;
      color: #2e3033;
      color: var(--color-text-title);
      line-height: 61px;
      width: 100%;
    }

    .c-login-header__subtitle {
      font-size: 20px;
      font-weight: 400;
      color: #646464;
      color: var(--color-text-body);
      line-height: 29px;
      width: 100%;
    }

    /* ---------- Component: Login Form ---------- */
    .c-login-form {
      margin-top: 36px;
      display: flex;
      flex-direction: column;
      gap: 36px;
    }

    /* ---------- Component: Tab Switch ---------- */
    .c-tab-switch {
      width: 413px;
      margin: 0 auto;
      display: flex;
      align-items: center;
    }

    .c-tab {
      flex: 1;
      height: 57px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      border-bottom: 3px solid #e6e6e6;
      border-bottom: 3px solid var(--color-border-light);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
      background: transparent;
    }

    .c-tab.is-active {
      border-bottom-color: #028446;
      border-bottom-color: var(--color-border-active);
    }

    .c-tab:hover:not(.is-active):not(.is-disabled) {
      border-bottom-color: #c8c8c8;
    }

    .c-tab.is-disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }

    .c-tab.is-disabled .c-tab__text {
      color: #969696;
      color: var(--color-text-muted);
    }

    .c-tab__icon {
      width: 36px;
      height: 36px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .c-tab__icon img {
      display: block;
    }

    .c-tab__text {
      font-size: 24px;
      font-weight: 400;
      line-height: 35px;
      color: #969696;
      color: var(--color-text-muted);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
    }

    .c-tab.is-active .c-tab__text {
      color: #028446;
      color: var(--color-primary);
    }

    .c-tab:hover:not(.is-active) .c-tab__text {
      color: #707070;
    }

    /* ---------- Component: Form Body ---------- */
    .c-form-body {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    /* ---------- Component: Input Group ---------- */
    .c-input {
      position: relative;
      width: 100%;
      height: 60px;
      border-radius: 48px;
      border-radius: var(--radius-pill);
      background: #ffffff;
      background: var(--color-white);
      display: flex;
      align-items: center;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
    }

    .c-input--username {
      border: 1.4px solid #028446;
      border: 1.4px solid var(--color-border-active);
    }

    .c-input--password {
      border: 1.4px solid #dcdfe2;
      border: 1.4px solid var(--color-border-default);
    }

    .c-input--password:hover,
    .c-input--password:focus-within {
      border-color: #bfc2c6;
    }

    .c-input__icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-left: 20px;
    }

    .c-input__icon img {
      display: block;
    }

    .c-input__icon--combo {
      position: relative;
    }

    .c-input__icon--combo .icon-part {
      position: absolute;
      display: block;
    }

    .c-input__field {
      flex: 1;
      height: 100%;
      padding: 0 16px;
      font-size: 18px;
      font-weight: 400;
      color: #333333;
      color: var(--color-text-input);
      background: transparent;
      min-width: 0;
    }

    .c-input__field:focus {
      outline: none;
    }

    .c-input__suffix {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-right: 16px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
    }

    .c-input__suffix:hover {
      opacity: 0.75;
    }

    .c-verify-btn {
      flex-shrink: 0;
      margin-right: 20px;
      padding: 0 4px;
      font-size: 16px;
      font-weight: 400;
      color: #028446;
      color: var(--color-primary);
      line-height: 23px;
      white-space: nowrap;
      cursor: pointer;
      user-select: none;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
    }

    .c-verify-btn:hover {
      color: #026a37;
    }

    .c-verify-btn.is-disabled {
      color: #969696;
      color: var(--color-text-muted);
      cursor: not-allowed;
      pointer-events: none;
    }

    /* ---------- Component: Form Footer ---------- */
    .c-form-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
    }

    .c-form-footer__link {
      font-size: 16px;
      font-weight: 400;
      color: #028446;
      color: var(--color-primary);
      line-height: 23px;
    }

    .c-form-footer__link:hover {
      text-decoration: underline;
      opacity: 0.85;
    }

    /* ---------- Component: Login Button ---------- */
    #personalPanel .c-login-btn {
      margin-top: 36px;
    }

    .c-login-btn {
      width: 100%;
      height: 60px;
      border-radius: 48px;
      border-radius: var(--radius-pill);
      background: linear-gradient(180deg, #0f8b44 0%, #83c237 100%);
      background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
      box-shadow: 0 2px 8px rgba(15, 139, 68, 0.18);
      border: none;
    }

    .c-login-btn:hover {
      box-shadow: 0 4px 16px rgba(15, 139, 68, 0.28);
      filter: brightness(1.04);
      transform: translateY(-1px);
    }

    .c-login-btn:active {
      transform: translateY(0);
      filter: brightness(0.98);
      box-shadow: 0 1px 4px rgba(15, 139, 68, 0.2);
    }

    .c-login-btn__text {
      font-size: 20px;
      font-weight: 500;
      color: #ffffff;
      color: var(--color-white);
      letter-spacing: 4px;
      line-height: 28px;
    }

    /* ---------- Component: Corp Identity List ---------- */
    .c-identity-list {
      display: flex;
      justify-content: space-between;
    }

    .c-identity-card {
      width: 31%;
      background: #ffffff;
      background: var(--color-white);
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      padding: 24px 0 20px;
      text-align: center;
    }

    .c-identity-card__img {
      width: 110px;
      height: 100px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .c-identity-card__img img {
      max-width: 100%;
      max-height: 100%;
      display: block;
    }

    .c-identity-card__name {
      margin-top: 14px;
      font-size: 16px;
      font-weight: 400;
      color: #333333;
      color: var(--color-text-input);
      line-height: 22px;
    }

    .c-identity-card__btn {
      display: inline-block;
      margin-top: 14px;
      padding: 6px 30px;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      color: var(--color-white);
      line-height: 20px;
      border-radius: 48px;
      border-radius: var(--radius-pill);
      background: linear-gradient(180deg, #0f8b44 0%, #83c237 100%);
      background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
      cursor: pointer;
      text-decoration: none; /* 兼容 a 标签：去除默认下划线 */
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      transition: var(--transition-base);
    }

    .c-identity-card__btn:hover {
      box-shadow: 0 4px 12px rgba(15, 139, 68, 0.28);
    }

    /* ---------- Responsive: Desktop Scale ---------- */
    @media (max-width: 1919px) {
      .c-login-left { -ms-flex: 0 0 60.4167%; flex: 0 0 60.4167%; }
      .c-login-right { -ms-flex: 0 0 39.5833%; flex: 0 0 39.5833%; }
    }

    @media (max-width: 1439px) {
      .c-login-left { -ms-flex: 0 0 55%; flex: 0 0 55%; }
      .c-login-right { -ms-flex: 0 0 45%; flex: 0 0 45%; }
      .c-form-wrapper {
        width: 420px;
        padding-top: 140px;
      }
      .c-login-header__title { font-size: 36px; line-height: 52px; }
      .c-tab-switch { width: 100%; }
    }

    /* ---------- Responsive: Tablet & Mobile ---------- */
    @media (max-width: 1199px) {
      .c-login-left { display: none; }
      .c-login-right {
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        min-height: 100vh;
        border: none;
        border-radius: 0;
      }
      .c-form-wrapper {
        width: 100%;
        max-width: 501px;
        padding: 120px 32px 48px;
      }
      .c-back-btn { top: 16px; left: 16px; }
    }

    @media (max-width: 767px) {
      .c-form-wrapper { padding: 100px 24px 40px; }
      .c-login-header__title { font-size: 32px; line-height: 46px; }
      .c-login-header__subtitle { font-size: 18px; line-height: 26px; }
      .c-tab__text { font-size: 20px; line-height: 30px; }
      .c-input { height: 54px; }
      .c-input__field { font-size: 16px; }
      .c-login-btn { height: 54px; }
      .c-login-btn__text { font-size: 18px; }
      .c-form-footer__link { font-size: 14px; }
    }

    @media (max-width: 374px) {
      .c-form-wrapper { padding: 88px 16px 32px; }
      .c-login-header__title { font-size: 28px; line-height: 40px; }
      .c-tab__text { font-size: 18px; }
    }
/* ---------- IE Compatibility Fixes ---------- */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* gap replacements using margins */
  .c-brand { margin: -11.25px; }
  .c-brand > * { margin: 11.25px; }
  .c-login-footer > span + span { margin-left: 20px; }
  .c-back-btn > span + span { margin-left: 7px; }
  .c-login-header { margin: -5px; }
  .c-login-header > * { margin: 5px; }
  .c-login-form > * + * { margin-top: 36px; }
  .c-tab > span + span { margin-left: 8px; }
  .c-form-body > * + * { margin-top: 24px; }
  /* IE flex fixes */
  .l-login { display: -ms-flexbox; }
  .c-login-left { display: -ms-flexbox; -ms-flex: 0 0 1160px; -ms-flex-direction: column; -ms-flex-pack: justify; width: 1160px; min-width: 1160px; max-width: 1160px; }
  .c-login-right { display: -ms-flexbox; -ms-flex: 0 0 760px; -ms-flex-direction: column; width: 760px; min-width: 760px; max-width: 760px; }
  .c-brand { display: -ms-flexbox; -ms-flex-align: center; }
  .c-brand__logo { display: -ms-flexbox; -ms-flex-align: center; -ms-flex-pack: center; }
  .c-brand__text { display: -ms-flexbox; -ms-flex-direction: column; -ms-flex-pack: center; }
  .c-login-footer { display: -ms-flexbox; }
  .c-back-btn { display: -ms-inline-flexbox; -ms-flex-align: center; }
  .c-login-header { display: -ms-flexbox; -ms-flex-direction: column; -ms-flex-align: center; }
  .c-login-form { display: -ms-flexbox; -ms-flex-direction: column; }
  .c-tab-switch { display: -ms-flexbox; -ms-flex-align: center; }
  .c-tab { display: -ms-flexbox; -ms-flex: 1; -ms-flex-align: center; -ms-flex-pack: center; }
  .c-tab__icon { display: -ms-flexbox; -ms-flex-align: center; -ms-flex-pack: center; }
  .c-form-body { display: -ms-flexbox; -ms-flex-direction: column; }
  .c-input { display: -ms-flexbox; -ms-flex-align: center; }
  .c-input__icon { display: -ms-flexbox; -ms-flex-align: center; -ms-flex-pack: center; }
  .c-input__field { -ms-flex: 1; }
  .c-login-btn { display: -ms-flexbox; -ms-flex-align: center; -ms-flex-pack: center; }
  .c-form-footer { display: -ms-flexbox; -ms-flex-align: center; -ms-flex-pack: justify; }
  .c-input__suffix { display: -ms-flexbox; -ms-flex-align: center; -ms-flex-pack: center; }
  /* focus-within fallback class (applied by ie-polyfill.js) */
  .c-input--password.focus-within { border-color: #bfc2c6; }
  /* user-select prefix */
  .c-verify-btn { -ms-user-select: none; }
  /* transform prefix */
  .c-login-btn:hover { -ms-transform: translateY(-1px); }
  .c-login-btn:active { -ms-transform: translateY(0); }
  /* flex-shrink prefix */
  .c-brand__logo { -ms-flex-negative: 0; }
  /* 法人身份列表 IE 兼容 */
  .c-identity-list { display: -ms-flexbox; -ms-flex-pack: justify; }
  .c-identity-card__img { display: -ms-flexbox; -ms-flex-align: center; -ms-flex-pack: center; }
  .c-back-btn__icon { -ms-flex-negative: 0; }
  .c-tab__icon { -ms-flex-negative: 0; }
  .c-input__icon { -ms-flex-negative: 0; }
  .c-verify-btn { -ms-flex-negative: 0; }
  .c-input__suffix { -ms-flex-negative: 0; }
}
