:root{
  --panel-w:520px;
}

html,body{height:100%;}
body{
  min-height:100vh;
  margin:0;
}

/* Layout */
.auth-wrapper{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.2fr minmax(340px,var(--panel-w));
}

/* LEFT: visual */
.visual{
  position:relative;
  overflow:hidden;
  color:#fff;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
}

.visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.92) 0%,
      rgba(0,0,0,.80) 40%,
      rgba(0,0,0,.60) 70%,
      rgba(0,0,0,.50) 100%
    );
}

.visual-content{
  position:relative;
  z-index:2;
  display:flex;
  height:100%;
  flex-direction:column;
  justify-content:space-between;
  padding:56px;
}

.brand-badge{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}

.brand-dot{
  width:12px;
  height:12px;
  border-radius:50%;
}

.visual h1{font-weight:400;letter-spacing:.2px}
.visual p.lead{opacity:.92}
.credit{font-size:.875rem;opacity:.85}

/* RIGHT */
.auth-panel{
  min-height:100vh;
  display:flex;
}

.panel-inner{
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:480px;
  margin-inline:auto;
  padding:32px 24px;
}

.form-box{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.panel-footer{
  text-align:center;
  font-size:.9rem;
  padding:12px 0 8px;
}

/* Logo */
.logo-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:12px;
}

.logo-wrap img{
  max-height:125px;
  width:auto;
}

/* Inputs */
.form-control{
  border-radius:12px;
  padding:0.9rem 1rem;
}

/* Buttons */
.btn-primary{
  border-radius:12px;
  padding:.8rem 1rem;
  font-weight:700;
}

.btn .fa-solid{vertical-align:-0.1em}

.auth-links a{text-decoration:none}
.auth-links a:hover{text-decoration:underline}

.footnote{font-size:.95rem}
.auth-meta{}

/* Password */
.password-field{position:relative}
.password-field .has-toggle{padding-right:2.8rem;}
.password-toggle{
  position:absolute;
  right:.5rem;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  padding:.4rem;
  border-radius:10px;
  line-height:1;
}

/* Effects */
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.02); }

.moveup {
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moveup:hover {
  transform: translateY(-10px);
}

.shrink { transition: all .2s ease-in-out; }
.shrink:hover { transform: scale(0.9); }

/* Responsive */
@media (max-width:992px){
  .auth-wrapper{grid-template-columns:1fr}
  .panel-inner{padding:24px 16px 24px}
  .visual-content{padding:36px 24px;min-height:46vh}
}

@media (max-width:576px){
  .visual{ display:none !important; }
  .auth-wrapper{ grid-template-columns: 1fr !important; }

  .auth-panel{ min-height:100vh; }
  @supports (min-height: 100dvh){
    .auth-panel{ min-height:100dvh; }
  }

  .panel-inner{ padding:16px 14px !important; }
  .form-box{ justify-content:center; }

  .logo-wrap img{ height:65px !important; }

  .footnote{ margin-bottom:1rem !important; }

  .panel-footer{
    position:fixed;
    left:0;
    right:0;
    bottom:8px;
    padding:6px 0;
    font-size:.9rem;
  }
}