/* =========================================================
   PIQUE LOGIN ULTRA v2
   File: assets/ggnn/css/login-ultra.css
   Aman dipakai sebagai file baru, tidak menimpa login-glow.css lama.
   Theme: Futuristic Infrastructure Command Center
   ========================================================= */

:root{
  --ultra-bg-url: url("../../brand/pique-ultra-bg.svg");

  --u-text: rgba(255,255,255,.94);
  --u-muted: rgba(255,255,255,.68);
  --u-soft: rgba(255,255,255,.42);

  --u-black: 8, 7, 6;
  --u-amber: 255, 168, 58;
  --u-orange: 255, 104, 18;
  --u-gold: 255, 211, 126;
  --u-red: 255, 68, 38;

  --u-glass-a: rgba(12, 9, 7, .58);
  --u-glass-b: rgba(4, 3, 2, .82);
  --u-stroke: rgba(255, 185, 92, .30);

  --card-w: 392px;
  --mx: 0px;
  --my: 0px;
  --rx: 0deg;
  --ry: 0deg;
  --spot-x: 50%;
  --spot-y: 50%;
}

/* =========================================================
   BASE / BACKGROUND
   ========================================================= */
.login-body{
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--u-text);
  font-family: "Sora", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(850px 600px at calc(70% + var(--mx)) calc(25% + var(--my)), rgba(var(--u-amber), .18), transparent 62%),
    radial-gradient(760px 520px at calc(20% - var(--mx)) calc(85% - var(--my)), rgba(var(--u-orange), .13), transparent 68%),
    linear-gradient(115deg, rgba(0,0,0,.72), rgba(10,6,3,.48) 44%, rgba(0,0,0,.78)),
    var(--ultra-bg-url);
  background-size: cover, cover, cover, cover;
  background-position: center;
  isolation: isolate;
}

.login-body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(900px 650px at var(--spot-x) var(--spot-y), rgba(var(--u-gold), .14), transparent 58%),
    radial-gradient(1000px 800px at 50% 115%, rgba(0,0,0,.64), transparent 54%);
  background-size: 72px 72px, 72px 72px, cover, cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.18));
}

.login-body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0px, rgba(255,255,255,.08) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: overlay;
  animation: ultraScan 7s linear infinite;
}

@keyframes ultraScan{
  from{ transform: translateY(-12px); }
  to{ transform: translateY(12px); }
}

.page-brand,
.login-wrap,
.hero-text{
  position: relative;
  z-index: 3;
}

/* Optional canvas particles inserted by JS */
.ultra-particles{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .72;
}

/* =========================================================
   BRAND BADGE
   ========================================================= */
.page-brand{
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.page-brand__badge{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 9px 13px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.035) 42%, rgba(var(--u-amber), .10)),
    rgba(10, 8, 6, .46);
  border: 1px solid rgba(255, 198, 118, .28);
  box-shadow:
    0 24px 70px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 34px rgba(var(--u-amber), .18);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transform-style: preserve-3d;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.page-brand__badge::before{
  content:"";
  position:absolute;
  inset:-70%;
  background: conic-gradient(from 180deg, transparent, rgba(255,217,146,.38), transparent 28%);
  animation: ultraSpin 5.5s linear infinite;
}

.page-brand__badge::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius: 17px;
  background: radial-gradient(180px 100px at var(--shine-x,50%) var(--shine-y,30%), rgba(255,255,255,.26), transparent 62%);
  opacity: 0;
  transition: opacity .22s ease;
}

.page-brand__badge:hover{
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 213, 136, .48);
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 48px rgba(var(--u-amber), .28);
}

.page-brand__badge:hover::after{ opacity: 1; }

.page-brand__logo{
  position: relative;
  z-index: 2;
  height: 38px;
  width: auto;
  display:block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.38));
}

/* =========================================================
   LAYOUT
   ========================================================= */
.login-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: clamp(22px, 5vw, 78px);
  padding: 96px clamp(18px, 6vw, 92px) 34px;
}

.hero-wrap{
  flex: 1 1 auto;
  min-width: 0;
}

.hero-text{
  max-width: 720px;
  transform: translateY(10px);
  animation: heroReveal .9s cubic-bezier(.2,.8,.2,1) both;
}

.hero-title{
  margin:0 0 18px;
  max-width: 720px;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -2.2px;
  font-weight: 950;
  color: transparent;
  background:
    linear-gradient(100deg, #fff 0%, #ffe3ad 34%, #ff9f2e 62%, #fff1ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 28px 70px rgba(0,0,0,.55);
}

.hero-title::after{
  content:"";
  display:block;
  width: min(420px, 72vw);
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, rgba(var(--u-amber),.85), rgba(255,255,255,.22), transparent);
  box-shadow: 0 0 18px rgba(var(--u-amber),.55);
}

.hero-rotator{
  position: relative;
  min-height: 4.9em;
  overflow: hidden;
}

.rotate-text{
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  margin:0;
  opacity:0;
  transform: translateY(18px) scale(.985);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
  max-width: 680px;
  font-size: clamp(15px, 1.35vw, 22px);
  line-height:1.55;
  font-weight: 720;
  color: rgba(255,255,255,.76);
  text-shadow: 0 14px 34px rgba(0,0,0,.46);
  filter: blur(3px);
}

.rotate-text.active{
  opacity:1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero-text::before{
  content:"PIQUE SECURE ACCESS";
  display:inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,224,169,.86);
  background: rgba(255, 170, 58, .10);
  border: 1px solid rgba(255, 195, 112, .26);
  box-shadow: 0 0 30px rgba(var(--u-amber), .14);
}

/* =========================================================
   LOGIN CARD
   ========================================================= */
.login-pane{
  flex: 0 0 auto;
  perspective: 1300px;
}

.login-glow{
  width: min(var(--card-w), 92vw);
  position: relative;
  border-radius: 30px;
  padding: 1px;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0,0,0) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  box-shadow:
    0 42px 110px rgba(0,0,0,.58),
    0 0 60px rgba(var(--u-amber), .18);
  animation: cardReveal 1s cubic-bezier(.2,.8,.2,1) .12s both;
  transition: transform .18s ease, filter .24s ease;
}

.login-glow::before{
  content:"";
  position:absolute;
  inset:-80%;
  z-index:-2;
  background:
    conic-gradient(from 90deg,
      transparent 0deg,
      rgba(255,255,255,.10) 42deg,
      rgba(var(--u-gold),.75) 76deg,
      rgba(var(--u-orange),.55) 112deg,
      transparent 154deg,
      transparent 230deg,
      rgba(var(--u-amber),.42) 292deg,
      transparent 360deg);
  animation: ultraSpin 6s linear infinite;
  filter: blur(10px);
}

.login-glow::after{
  content:"";
  position:absolute;
  inset:1px;
  z-index:-1;
  border-radius: 29px;
  background: rgba(0,0,0,.22);
}

@keyframes ultraSpin{ to{ transform: rotate(360deg); } }

.login-card{
  position: relative;
  overflow: hidden;
  border-radius: 29px;
  padding: 20px;
  background:
    radial-gradient(420px 280px at var(--spot-x) var(--spot-y), rgba(255,255,255,.13), transparent 60%),
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 38%, rgba(var(--u-amber),.08)),
    linear-gradient(180deg, var(--u-glass-a), var(--u-glass-b));
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

.login-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.14) 18%, transparent 34%);
  transform: translateX(-120%);
  animation: glassSweep 5s ease-in-out infinite;
}

.login-card::after{
  content:"";
  position:absolute;
  inset:auto 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,210,130,.72), transparent);
  box-shadow: 0 0 22px rgba(var(--u-amber), .65);
  opacity: .68;
}

@keyframes glassSweep{
  0%, 54%{ transform: translateX(-120%); }
  76%, 100%{ transform: translateX(120%); }
}

/* Desktop collapsed by default */
.login-collapsible{
  transform-origin: right bottom;
  scale: .92;
  opacity: .96;
}

.login-content{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: max-height .42s cubic-bezier(.2,.8,.2,1), opacity .26s ease, transform .30s ease;
}

.login-collapsible:hover,
.login-collapsible:focus-within,
.login-collapsible.is-open{
  scale: 1;
  opacity: 1;
}

.login-collapsible:hover .login-content,
.login-collapsible:focus-within .login-content,
.login-collapsible.is-open .login-content{
  max-height: 680px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.login-collapsible:not(:hover):not(:focus-within):not(.is-open) .login-card{
  padding: 13px;
}

/* =========================================================
   TEXT / HEADER
   ========================================================= */
.login-title{
  margin:0;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -.8px;
  color: #ffe3ad;
  text-shadow: 0 0 24px rgba(var(--u-amber), .22);
}

.login-subtitle{
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255,224,180,.68);
}

.login-badge{
  width: 46px;
  height: 46px;
  border-radius: 17px;
  display:grid;
  place-items:center;
  color: #ffcf7f;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.20), transparent 45%),
    rgba(255,255,255,.075);
  border: 1px solid rgba(255,222,158,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 26px rgba(var(--u-amber),.14);
}

/* =========================================================
   INPUTS
   ========================================================= */
.form-label{
  letter-spacing: .04em;
  font-weight: 800;
}

.input-group{
  position: relative;
  border-radius: 17px;
  background: rgba(0,0,0,.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.085);
  transition: box-shadow .2s ease, transform .2s ease;
}

.input-group:focus-within{
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,204,126,.48),
    0 0 0 4px rgba(var(--u-amber), .11),
    0 16px 42px rgba(0,0,0,.30);
}

.login-ig-left,
.login-ig-right{
  border:0 !important;
  color: rgba(255,236,205,.86) !important;
  background: transparent !important;
}

.login-ig-left{
  border-radius: 17px 0 0 17px !important;
  padding-left: 15px;
}

.login-ig-right{
  border-radius: 0 17px 17px 0 !important;
  padding-right: 15px;
}

.login-input{
  min-height: 48px;
  border:0 !important;
  background: transparent !important;
  color: var(--u-text) !important;
  padding: 13px 14px !important;
  font-weight: 720;
}

.login-input:focus{
  box-shadow:none !important;
}

.login-input::placeholder{
  color: rgba(255,255,255,.34) !important;
}

/* Autofill fix */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus{
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: #fff;
}

/* =========================================================
   CAPTCHA
   ========================================================= */
.captcha-box{
  min-height: 74px;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(0,0,0,.19);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* =========================================================
   BUTTON
   ========================================================= */
.login-cta{
  padding-top: 8px;
}

.login-btn{
  position: relative;
  overflow:hidden;
  border:0;
  min-height: 50px;
  border-radius: 18px;
  font-weight: 950;
  letter-spacing: .02em;
  color: #1d1004;
  background:
    radial-gradient(120px 70px at var(--btn-x,50%) var(--btn-y,50%), rgba(255,255,255,.72), transparent 58%),
    linear-gradient(100deg, #ffd184, #ff9f2e 42%, #ff6717 74%, #ffd184);
  background-size: auto, 220% 100%;
  box-shadow:
    0 22px 60px rgba(0,0,0,.48),
    0 0 34px rgba(var(--u-amber), .36),
    inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.login-btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-120%);
}

.login-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.08) saturate(1.07);
  box-shadow:
    0 26px 76px rgba(0,0,0,.56),
    0 0 48px rgba(var(--u-amber), .48),
    inset 0 1px 0 rgba(255,255,255,.70);
}

.login-btn:hover::before{
  animation: btnSweep .85s ease;
}

.login-btn:active{
  transform: translateY(0) scale(.985);
}

@keyframes btnSweep{
  to{ transform: translateX(120%); }
}

/* JS ripple */
.ultra-ripple{
  position:absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  pointer-events:none;
  background: rgba(255,255,255,.58);
  transform: translate(-50%, -50%) scale(1);
  animation: ripple .65s ease-out forwards;
}

@keyframes ripple{
  to{
    opacity:0;
    transform: translate(-50%, -50%) scale(18);
  }
}

/* =========================================================
   ALERT
   ========================================================= */
.alert-danger{
  border: 1px solid rgba(255, 108, 84, .35);
  background: rgba(82, 14, 9, .45);
  color: rgba(255,235,231,.94);
  border-radius: 16px;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes heroReveal{
  from{ opacity:0; transform: translateY(28px); filter: blur(8px); }
  to{ opacity:1; transform: translateY(0); filter: blur(0); }
}

@keyframes cardReveal{
  from{ opacity:0; transform: translateX(32px) scale(.94) rotateY(-10deg); filter: blur(10px); }
  to{ opacity:1; transform: translateX(0) scale(1) rotateY(0); filter: blur(0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px){
  .login-wrap{
    gap: 28px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-title{
    font-size: clamp(32px, 5.8vw, 54px);
  }
}

@media (max-width: 768px){
  .login-body{
    background-position: center;
  }

  .login-wrap{
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 94px 16px 24px;
  }

  .hero-text{
    text-align:center;
    max-width: 620px;
  }

  .hero-title{
    letter-spacing: -1.1px;
    margin-bottom: 14px;
  }

  .hero-title::after{
    margin-left:auto;
    margin-right:auto;
  }

  .hero-text::before{
    font-size: 10px;
    margin-bottom: 13px;
  }

  .hero-rotator{
    min-height: 6.8em;
  }

  .rotate-text{
    left:50%;
    transform: translate(-50%, 16px) scale(.985);
    text-align:center;
  }

  .rotate-text.active{
    transform: translate(-50%, 0) scale(1);
  }

  .login-collapsible,
  .login-collapsible:hover,
  .login-collapsible:focus-within{
    scale:1;
    transform:none !important;
  }

  .login-content{
    max-height:none;
    opacity:1;
    overflow:visible;
    transform:none;
    pointer-events:auto;
  }

  .login-card{
    padding: 17px;
  }

  .login-collapsible:not(:hover):not(:focus-within):not(.is-open) .login-card{
    padding: 17px;
  }

  .page-brand{
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .page-brand__badge{
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 13px;
  }

  .page-brand__logo{
    height: 25px;
  }
}

@media (max-width: 420px){
  .login-title{ font-size: 27px; }
  .login-subtitle{ font-size: 11.5px; }
  .login-btn{ min-height: 48px; }
  .hero-rotator{ min-height: 7.8em; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .ultra-particles{
    display:none;
  }
}
