:root{
  --hk-yellow: #ffd200;
  --hk-yellow-2: #ffb800;
  --hk-bg-deep: #07080d;
}

/* Finance Background (Three.js) */
#hk-finance-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(255, 210, 0, 0.08), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(255, 184, 0, 0.06), transparent 55%),
    radial-gradient(900px 700px at 50% 80%, rgba(255, 145, 0, 0.06), transparent 55%),
    linear-gradient(180deg, #07080d 0%, #0b0c12 55%, #07080d 100%);
}

#hk-finance-bg::after{
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(900px 600px at 50% 30%, rgba(0,0,0,0.25), rgba(0,0,0,0.7));
}

#hk-finance-bg canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

/* =====================================================
   Banner (match news.html feel: grayscale + zoom loop)
   ===================================================== */

.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; /* keep clear under absolute header */
  text-transform: capitalize;
}

/* Main */
.hk-login-main{
  position: relative;
  z-index: 1;
  background: rgba(22, 22, 25, 0.55);
  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;
}

/* Reverse layout (form left, visual right) for signup */
.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);
}

/* Left visual (image 660x620) */
.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-visual__btn{
  margin-top: 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,210,0,0.95) 0%, rgba(255,184,0,0.95) 100%);
  border: 1px solid rgba(255,210,0,0.55);
  color: #0d0d14;
  font-weight: 800;
  text-decoration:none;
  transition: transform .2s ease, filter .2s ease;
}

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

.hk-login-visual__watermark{
  position:absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  font-size: 92px;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(0,0,0,0.25);
  z-index: 1;
  user-select:none;
  pointer-events:none;
  mix-blend-mode: multiply;
}

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

.hk-login-error{
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 210, 0, 0.32);
  border-radius: 8px;
  background: rgba(255, 210, 0, 0.08);
  color: #ffd200;
  font-size: 14px;
  font-weight: 700;
}

.hk-login-confirm{
  gap: 20px;
}

.hk-login-confirm__head{
  display:grid;
  gap: 12px;
}

.hk-login-confirm__eyebrow{
  width: max-content;
  max-width: 100%;
  display:inline-flex;
  align-items:center;
  gap: 9px;
  color: #f19101;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hk-login-confirm__title{
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
}

.hk-login-confirm__copy{
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  line-height: 1.75;
}

.hk-login-confirm__panel{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}

.hk-login-confirm__panel-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,210,0,0.28);
  background: rgba(255,210,0,0.12);
  color: #ffd200;
}

.hk-login-confirm__panel strong{
  display:block;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.hk-login-confirm__panel div > span{
  display:block;
  margin-top: 4px;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
  line-height: 1.65;
}

.hk-logout-confirm{
  min-width: 520px;
  gap: 28px;
}

.hk-logout-confirm__actions{
  gap: 14px;
  margin: 0;
}

.hk-logout-confirm__actions .hk-login-social__btn,
.hk-logout-confirm__actions .hk-login-submit{
  height: 52px;
}

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

/* Two-column grid support (signup password + confirm) */
.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(255,210,0,0.55);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(255,210,0,0.10);
}

.hk-login-captcha{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items:center;
}

.hk-login-captcha__image{
  width: 160px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.hk-login-captcha__input{
  height: 54px;
}

.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, opacity .2s ease;
}

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

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

.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;
}

.hk-login-check__input:focus + .hk-login-check__box{
  outline: 2px solid #ffd200;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255,210,0,0.16);
}

.hk-login-check__input:checked + .hk-login-check__box{
  border-color: rgba(255,210,0,0.6);
  background: rgba(255,210,0,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-submit{
  width:100%;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255,210,0,0.55);
  background: linear-gradient(180deg, rgba(255,210,0,0.95) 0%, rgba(255,184,0,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);
}

/* Signup primary button. */
.hk-login-submit--signup{

  background: #f19101;
  color: #ffffff;
}

.hk-login-submit--signup:hover{

  color: #000000;
}

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

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

.hk-login-or{
  margin: 18px 0 14px;
  position:relative;
  text-align:center;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.hk-login-or::before,
.hk-login-or::after{
  content:'';
  position:absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: rgba(255,255,255,0.10);
}

.hk-login-or::before{ left:0; }
.hk-login-or::after{ right:0; }

.hk-login-social{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.hk-login-social__btn{
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.85);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.hk-login-social__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,210,0,0.30);
}

.hk-login-social__icon{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,210,0,0.12);
  border: 1px solid rgba(255,210,0,0.28);
  color: var(--hk-yellow);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

/* OAuth button style (match screenshot) */
.hk-login-social__btn--oauth{
  height: 52px;
  border-radius: 14px;
  justify-content: flex-start;
  padding: 0 26px;
  gap: 16px;

  color: rgba(255,255,255,0.78);
  font-size: 24px;
}

.hk-login-social__btn--oauth:hover{
  background: #f19101;
 color:white
}

.hk-login-social__oauth-icon{
  width: 30px;
  height: 30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.hk-login-social__oauth-icon svg{
  width: 28px;
  height: 28px;
  display:block;
}

.hk-login-social__oauth-icon .fa-apple{
  font-size: 28px;
  color: #fff;
}

.hk-login-social__oauth-text{
  line-height: 1;
}

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

@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-visual{
    width: 100%;
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hk-login-card--reverse .hk-login-visual{
    border-left: 0;
  }
  .hk-login-visual__title{ font-size: 34px; }
  .hk-login-visual__watermark{ font-size: 70px; }
  .hk-logout-confirm{ min-width: 0; }
}

@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-social{ grid-template-columns: 1fr; }
  .hk-login-captcha{ grid-template-columns: 1fr; }
  .hk-login-visual__content{ padding: 26px 20px; }
  .hk-login-visual__title{ font-size: 28px; }
  .hk-login-confirm__title{ font-size: 26px; }
  .hk-login-confirm__panel{ padding: 14px; }
  .hk-logout-confirm__actions{ grid-template-columns: 1fr; }
}
