:root{
  --hk-yellow: #f59e0b;
  --hk-yellow-2: #fbbf24;
  --hk-bg-deep: #07080d;
}

/* =====================================================
   全局页面背景（与站点深色风格统一）
   ===================================================== */
.hk-login-main {
  background-color: var(--hk-bg-deep);
}

/* 页面级装饰背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(245,158,11,0.06), transparent 60%),
    radial-gradient(900px 500px at 80% 70%, rgba(251,191,36,0.04), transparent 55%),
    radial-gradient(600px 400px at 50% 50%, rgba(245,158,11,0.03), transparent 50%),
    linear-gradient(180deg, #07080d 0%, #0c0d12 50%, #07080d 100%);
}

/* =====================================================
   Banner
   ===================================================== */

.hk-login-hero{
  position: relative;
  min-height: 377px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  z-index: 1;
}

.hk-login-hero__bg{
  position:absolute;
  inset:0;
  background: url('../images/newsbg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  filter: grayscale(100%);
  animation: hkLoginHeroZoom 10s ease-in-out infinite;
}

@keyframes hkLoginHeroZoom{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.1); }
}

.hk-login-hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(10,10,15,0.35) 0%, rgba(10,10,15,0.90) 100%);
}

.hk-login-hero__title{
  position: relative;
  z-index: 2;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.42);
  margin-top: 95px;
  text-transform: capitalize;
}

/* Main */
.hk-login-main{
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 800px 400px at 30% 0%, rgba(245,158,11,0.05), transparent),
    radial-gradient(ellipse 600px 300px at 70% 100%, rgba(251,191,36,0.04), transparent),
    rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(10px);
  padding: 74px 0 210px;
}

.hk-login-wrap{
  display:flex;
  justify-content:center;
}

.hk-login-card{
  display:grid;
  grid-template-columns: 660px 1fr;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 10, 15, 0.55);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  min-height: 620px;
}

.hk-login-card--reverse{
  grid-template-columns: 1fr 660px;
}

.hk-login-card--reverse .hk-login-visual{
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* 左侧视觉区 */
.hk-login-visual{
  position: relative;
  min-height: 620px;
  background: #2b2f33;
  border-right: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.hk-login-visual__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.hk-login-visual__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(10,10,15,0.10) 0%, rgba(10,10,15,0.70) 100%);
}

.hk-login-visual__content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap: 12px;
  padding: 40px 44px;
  z-index: 2;
}

.hk-login-visual__small{
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.hk-login-visual__title{
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
}

/* 表单 */
.hk-login-form{
  padding: 42px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hk-login-form__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hk-login-form__grid--2col{
  grid-template-columns: 1fr 1fr;
}

.hk-login-field--full{
  grid-column: 1 / -1;
}

.hk-login-input{
  width:100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color:#fff;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.hk-login-input::placeholder{
  color: rgba(255,255,255,0.35);
}

.hk-login-input:focus{
  border-color: rgba(245,158,11,0.55);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.10);
}

.hk-login-field--row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  margin-top: 4px;
}

.hk-login-link{
  color: rgba(255,255,255,0.70);
  text-decoration:none;
  font-size: 13px;
  transition: color .2s ease;
}

.hk-login-link:hover{
  color: #ffa928;
}

.hk-login-link--highlight{
  color: var(--hk-yellow);
}

.hk-login-link--green{
  color: #f59e0b;
}

.hk-login-link--green:hover{
  color: #ffaf38;
}

.hk-login-check{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  user-select:none;
}

.hk-login-check__input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.hk-login-check__box{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  display:inline-block;
  position:relative;
  flex-shrink: 0;
}

.hk-login-check__input:checked + .hk-login-check__box{
  border-color: rgba(245,158,11,0.6);
  background: rgba(245,158,11,0.16);
}

.hk-login-check__input:checked + .hk-login-check__box::after{
  content:'';
  position:absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top:0;
  border-left:0;
  transform: rotate(45deg);
}

.hk-login-check__label{
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* 头像上传 */
.hk-login-avatar-upload{
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 6px 0;
}
.hk-login-avatar-preview{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.2s;
  background-size: cover;
  background-position: center;
}
.hk-login-avatar-upload:hover .hk-login-avatar-preview{
  border-color: rgba(245,158,11,0.4);
  color: rgba(245,158,11,0.6);
}
.hk-login-avatar-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hk-login-avatar-text{
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.hk-login-submit{
  width:100%;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,0.55);
  background: linear-gradient(180deg, rgba(245,158,11,0.95) 0%, rgba(251,191,36,0.95) 100%);
  color: #0d0d14;
  font-size: 14px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .2s ease, filter .2s ease;
}

.hk-login-submit:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hk-login-submit:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hk-login-submit--signup{
  background: #f59e0b;
  color: #ffffff;
}

.hk-login-submit--signup:hover{
  color: #000000;
}

.hk-login-foot{
  margin: 18px 0 0;
  text-align:center;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
}

/* 消息提示 */
.hk-login-message{
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hk-login-message--error{
  background: rgba(250,34,86,0.12);
  border: 1px solid rgba(250,34,86,0.3);
  color: #ff6b8a;
}

.hk-login-message--success{
  background: rgba(17,202,190,0.12);
  border: 1px solid rgba(17,202,190,0.3);
  color: #11cabe;
}

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 991px){
  .hk-login-hero{ min-height: 240px; }
  .hk-login-hero__title{
    font-size: 38px;
    letter-spacing: 5px;
    margin-top: 80px;
  }
  .hk-login-card{ grid-template-columns: 1fr; }
  .hk-login-card--reverse{ grid-template-columns: 1fr; }
  .hk-login-visual{
    width: 100%;
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hk-login-card--reverse .hk-login-visual{
    border-left: 0;
    order: -1;
  }
  .hk-login-visual__title{ font-size: 34px; }
}

@media (max-width: 576px){
  .hk-login-hero{ min-height: 200px; }
  .hk-login-hero__title{
    font-size: 30px;
    letter-spacing: 4px;
    margin-top: 70px;
  }
  .hk-login-form{ padding: 26px 20px; }
  .hk-login-visual__content{ padding: 26px 20px; }
  .hk-login-visual__title{ font-size: 28px; }
  .hk-login-form__grid--2col{ grid-template-columns: 1fr; }
}
