
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: url(loginbg.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  overflow-x: hidden;
}
body::before{
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, #ffcc00 0%, rgba(255, 204, 0, 0.05) 60%);
  z-index: -1;
}
.login-layout{
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.login-brand{
  position: fixed;
  top: 28px;
  left: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: auto;
  max-width: none;
  z-index: 2;
}
.login-brand-logo-wrap{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}
.login-brand-logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-brand-text h2{
  margin: 0;
  color: #111;
  font-size: clamp(20px, 1.8vw, 34px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.login-brand-text p{
  margin: 6px 0 0;
  color: #4b617f;
  font-size: clamp(10px, 0.75vw, 16px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2.5px;
  white-space: nowrap;
}
.wrapper{
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(34px) saturate(150%);
  backdrop-filter: blur(34px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #fff;
  border-radius: 20px;
  padding: 30px 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}
.wrapper::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
}
.wrapper::after{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
  pointer-events: none;
}
.wrapper h1{
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.alert-banner{
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.alert-error{
  border: 1px solid rgba(255, 120, 120, 0.6);
  background: rgba(185, 28, 28, 0.25);
  color: #ffe4e6;
}
.alert-success{
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: rgba(6, 95, 70, 0.3);
  color: #d1fae5;
}
.inline-link{
  color: #fff;
  text-decoration: underline;
  margin-left: 6px;
}
.otp-hint{
  margin: 8px 0 12px;
  text-align: center;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.otp-boxes{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 16px 0 18px;
}
.otp-digit{
  width: 100%;
  height: 66px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 22px rgba(15, 23, 42, 0.12);
}
.otp-digit:focus{
  border-color: #f6c648;
  box-shadow: 0 0 0 2px rgba(246, 198, 72, 0.18);
}
.wrapper .input-box{
  position: relative;
  width: 100%;
  height: 50px;
  margin: 30px 0;
}
.input-box input{
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding: 20px 45px 20px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 22px rgba(15, 23, 42, 0.14);
}
.input-box input::placeholder{
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}
.input-box i{
  position: absolute;
  right: 20px;
  top: 30%;
  transform: translate(-50%);
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
.wrapper .remember-forgot{
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  margin: -15px 0 15px;
}
.remember-forgot label input{
  accent-color: #fff;
  margin-right: 3px;
}
.remember-forgot a{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.remember-forgot a:hover{
  text-decoration: underline;
}
.wrapper .btn{
  width: 100%;
  height: 45px;
  background: #fff;
  border: none;
  outline: none;
  border-radius: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  cursor: pointer;
  font-size: 16px;
  color: #333;
  font-weight: 700;
}
.wrapper .btn.btn-secondary{
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.wrapper .register-link{
  font-size: 14.5px;
  text-align: center;
  margin: 20px 0 15px;
}
.otp-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.otp-actions form{
  margin: 0;
}
.register-link p a{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.register-link p a:hover{
  text-decoration: underline;
}

/* Honeycomb Loader Animation */
@-webkit-keyframes honeycomb {
  0%,
  20%,
  80%,
  100% {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  30%,
  70% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes honeycomb {
  0%,
  20%,
  80%,
  100% {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  30%,
  70% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(0px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-overlay.show {
  display: flex;
}

.honeycomb {
  height: 24px;
  position: relative;
  width: 24px;
  display: inline-block;
}

.honeycomb div {
  -webkit-animation: honeycomb 2.1s infinite backwards;
  animation: honeycomb 2.1s infinite backwards;
  background: #f6c648;
  height: 12px;
  margin-top: 6px;
  position: absolute;
  width: 24px;
}

.honeycomb div:after, .honeycomb div:before {
  content: '';
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  position: absolute;
  left: 0;
  right: 0;
}

.honeycomb div:after {
  top: -6px;
  border-bottom: 6px solid #f6c648;
}

.honeycomb div:before {
  bottom: -6px;
  border-top: 6px solid #f6c648;
}

.honeycomb div:nth-child(1) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  left: -28px;
  top: 0;
}

.honeycomb div:nth-child(2) {
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
  left: -14px;
  top: 22px;
}

.honeycomb div:nth-child(3) {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
  left: 14px;
  top: 22px;
}

.honeycomb div:nth-child(4) {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
  left: 28px;
  top: 0;
}

.honeycomb div:nth-child(5) {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
  left: 14px;
  top: -22px;
}

.honeycomb div:nth-child(6) {
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
  left: -14px;
  top: -22px;
}

.honeycomb div:nth-child(7) {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {
  body{
    align-items: center;
    padding: 24px 14px;
  }
  .login-brand{
    top: 16px;
    left: 16px;
    gap: 10px;
  }
  .login-brand-logo-wrap{
    width: 64px;
    height: 64px;
  }
  .wrapper{
    padding: 24px 20px;
  }
  .wrapper h1{
    font-size: 30px;
  }
  .wrapper .input-box{
    margin: 22px 0;
  }
  .otp-boxes{
    gap: 8px;
  }
  .otp-digit{
    height: 56px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  body{
    padding: 16px 10px;
  }
  .login-brand{
    top: 12px;
    left: 10px;
    gap: 8px;
  }
  .login-brand-logo-wrap{
    width: 54px;
    height: 54px;
  }
  .login-brand-text h2{
    font-size: 20px;
  }
  .login-brand-text p{
    font-size: 11px;
    letter-spacing: 1.8px;
  }
  .wrapper{
    padding: 20px 14px;
  }
  .wrapper h1{
    font-size: 26px;
  }
  .input-box input{
    font-size: 15px;
    padding: 18px 42px 18px 16px;
  }
  .otp-hint{
    font-size: 13px;
  }
  .otp-boxes{
    gap: 6px;
  }
  .otp-digit{
    height: 48px;
    font-size: 24px;
  }
  .wrapper .remember-forgot{
    font-size: 13px;
  }
  .otp-actions{
    grid-template-columns: 1fr;
  }
}
