/* ============================================================
   ZKBioTime Login — Modern Card Layout v2.0
   ============================================================ */

.l { float: left; }
.r { float: right; }

/* ---- Page background ---- */
html, body {
  height: 100%;
  margin: 0;
  min-height: 100%;
  width: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #dceeff 0%, #eef6ff 40%, #f5f9ff 100%);
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.login-page-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.decor-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(26, 111, 212, 0.08);
}

.decor-circle-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 8%;
}

.decor-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 5%;
  background: rgba(26, 111, 212, 0.06);
}

.decor-dots {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(26, 111, 212, 0.25) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.5;
}

.demo-banner {
  position: relative;
  z-index: 10;
  background: #f5f5f5;
  color: #333;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  padding: 10px 25px;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}

/* ---- Main card ---- */
.login-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 540px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(26, 80, 160, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.login-card-left {
  flex: 0 0 46%;
  max-width: 46%;
  padding: 40px 44px 28px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.login-card-right {
  flex: 1;
  min-height: 100%;
  background: #0a1628;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.login-illustration {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* ---- Brand header ---- */
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a6fd4, #0d4a9e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 111, 212, 0.35);
}

.login-brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.login-brand-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a6fd4;
  line-height: 1.3;
}

/* ---- Welcome text ---- */
.login-welcome {
  margin-bottom: 24px;
}

.login-welcome h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #1a2332;
  letter-spacing: -0.3px;
}

.login-welcome p {
  margin: 0;
  font-size: 14px;
  color: #8a94a6;
}

/* ---- Login box (forms) ---- */
.login_box {
  width: 100%;
  flex: 1;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  min-width: unset;
  max-width: unset;
}

.login_box_type {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.login_box_type a {
  color: #8a94a6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.login_box_type a.active {
  color: #1a6fd4;
  font-weight: 700;
}

.login_box_type span {
  color: #c5cdd8;
  font-size: 14px;
}

.login_about_div {
  float: none;
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.login_box a:link,
.login_box a:visited,
.login_box a:active {
  color: #1a6fd4;
  text-decoration: none;
}

.login_box a:hover {
  color: #0d4a9e;
  text-decoration: underline;
}

/* ---- Form fields ---- */
.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5a6474;
  margin-bottom: 7px;
}

.field-input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0bac8;
  font-size: 15px;
  z-index: 2;
  pointer-events: none;
}

.login_box .login_inp,
.login_box .login_inp_tip {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  line-height: 44px;
  height: 44px;
  width: 100%;
  margin-bottom: 0;
  color: #1a2332;
  padding: 0 14px 0 42px;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.login_box .login_inp_tip {
  color: #b0bac8;
}

.login_box .login_inp:focus,
.login_box .login_inp_tip:focus {
  border-color: #1a6fd4;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.12);
}

/* ---- Password eye toggle ---- */
.password-container {
  position: relative;
  width: auto;
  margin: auto;
}

.password {
  width: 100%;
  padding-right: 44px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.password::-ms-reveal,
.password::-ms-clear {
  display: none !important;
}

.password::-webkit-contacts-auto-fill-button,
.password::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b0bac8' stroke-width='2'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  transition: opacity 0.2s;
}

.eye-btn:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a6fd4' stroke-width='2'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>");
}

.eye-btn.hide {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b0bac8' stroke-width='2'><path d='M17.94 17A9.77 9.77 0 0 1 12 18c-5 0-9-4-9-4s1.29-1.9 3.24-3.06'/><path d='M12 10v2m4.25-5.54L18 8m-3 3h6M2 2l20 20'/></svg>");
}

.eye-btn.hide:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a6fd4' stroke-width='2'><path d='M17.94 17A9.77 9.77 0 0 1 12 18c-5 0-9-4-9-4s1.29-1.9 3.24-3.06'/><path d='M12 10v2m4.25-5.54L18 8m-3 3h6M2 2l20 20'/></svg>");
}

/* ---- Captcha ---- */
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-input-wrap {
  flex: 1;
}

.captcha-img {
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
  width: 46%;
  object-fit: cover;
}

/* ---- Forgot password ---- */
.forgot-password {
  text-align: right;
  margin: -8px 0 14px;
}

.forgot-password a {
  font-size: 13px;
  color: #1a6fd4 !important;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* ---- Agreement checkbox ---- */
.agreement-item {
  margin-bottom: 16px !important;
}

.agreement-item p {
  font-size: 12px;
  color: #8a94a6;
  line-height: 1.6;
  margin: 0;
}

.agreement-item label {
  color: #1a6fd4 !important;
  cursor: pointer;
}

.agreement-item a label {
  color: #1a6fd4 !important;
}

/* ---- Login buttons ---- */
.login_but {
  margin-top: 8px;
}

.login-btn-row {
  display: flex;
  gap: 10px;
}

.btn_fp,
.btn_fp_disabled,
.but_login,
.but_reset,
.empLoginBtn {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background-color: #1a6fd4;
  background-image: linear-gradient(135deg, #2b8ae8 0%, #1a6fd4 50%, #0d5cb8 100%);
  height: 46px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-indent: 0;
  padding: 0 20px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(26, 111, 212, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn_fp,
.btn_fp_disabled {
  flex: 1;
  width: auto;
}

.login-btn-row .empLoginBtn,
.login-btn-row .but_login {
  flex: 1;
  width: auto;
}

.empLoginBtn:hover,
.but_login:hover,
.btn_fp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 111, 212, 0.5);
  opacity: 0.95;
  filter: none;
}

.btn_fp_disabled {
  background: #c5cdd8;
  box-shadow: none;
  color: #f0f2f5;
  cursor: default;
  opacity: 1;
}

.btn_fp_disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ---- Footer ---- */
.login-card-footer {
  margin-top: auto;
  padding-top: 20px;
  text-align: left;
}

.license-register {
  text-align: left !important;
  color: #b0bac8;
}

.license-register span {
  color: #b0bac8;
  font-size: 12px;
}

.license-register a,
.demo-icp a {
  color: #1a6fd4;
  text-decoration: underline;
  font-size: 12px;
}

/* ---- Error tip ---- */
.error_tip {
  padding: 2px 0 6px;
  color: #e53935;
  font-size: 13px;
  overflow: visible;
  min-height: 20px;
}

/* ---- Hidden legacy elements ---- */
.login_copy { display: none; }

.login_big_box,
.login_logo {
  display: contents;
}

/* ---- About / Language icons ---- */
.login_about {
  background-image: url(/media/img/login_about.png);
  background-repeat: no-repeat;
  background-position: center;
  height: 22px;
  width: 20px;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.login_language {
  background-image: url(/media/img/login_language.png);
  background-repeat: no-repeat;
  background-position: center;
  height: 25px;
  width: 20px;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.login_about:hover,
.login_language:hover {
  opacity: 1;
}

/* ---- Layer / modal overrides (license, activation) ---- */
.layui-layer-btn .layui-layer-btn0 {
  border-color: #1a6fd4 !important;
  background-color: #1a6fd4 !important;
}

span.required { color: red; }

.info-sm-box .info-sm-box-label {
  font-size: 18px;
  color: #1a6fd4;
  padding: 3px 0;
}

.info-box-item { padding: 3px 0; }
.info-box-item .box-item-label { font-weight: bold; }
.info-box-item .box-item { display: inline-block; }
.info-box-item .box-item-val { text-decoration: underline; }

.online-activation .layui-form-item { margin-bottom: 0; }
.online-activation .layui-form-item .layui-inline { margin: 5px; }
.online-activation .layui-form-item .layui-input-inline { width: 150px; }
.online-activation .layui-form-label { width: 100px; padding: 3px; }
.online-activation .layui-input,
.online-activation .layui-select,
.online-activation .layui-textarea { height: 28px; }
.online-activation .sn-input .layui-input-inline { width: 280px; }
.online-activation .company-input .layui-input-inline,
.upk-download .company-input.layui-input { width: 430px; }

.admin-login .layui-input,
.admin-login .layui-select,
.admin-login .layui-textarea { height: 28px; }

.license_file-container { margin: 15px 0 0 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    max-width: 440px;
    min-height: unset;
  }

  .login-card-left {
    flex: 1;
    max-width: 100%;
    padding: 32px 28px 24px;
  }

  .login-card-right {
    display: none;
  }

  .login-welcome h1 {
    font-size: 22px;
  }
}

@media (max-width: 400px) {
  .login-card-left {
    padding: 24px 20px 20px;
  }

  .login-btn-row {
    flex-direction: column;
  }
}
