/* Animated Auth (Template-like) */
:root{
  /* Gauge brand (from logo): #006680 */
  --ms-accent: #006680;
  --ms-accent2: #0083a3;
  --ms-shadow: 0 22px 70px rgba(0,0,0,.18);
  --ms-radius: 18px;
}

.auth-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 16px;
  background: radial-gradient(1200px 500px at 10% 10%, rgba(0,102,128,.18), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(0,131,163,.16), transparent 55%),
              #f6f7fb;
}

.auth-container{
  background: #fff;
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow);
  position: relative;
  overflow: hidden;
  width: 920px;
  max-width: 100%;
  min-height: 520px;
  border: 1px solid rgba(15,23,42,.06);
}

.auth-container h1{
  font-weight: 800;
  margin: 0 0 8px;
}

.auth-container p{
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: .3px;
  margin: 12px 0 18px;
  color: rgba(255,255,255,.92);
}

.auth-container span.helper{
  font-size: 12px;
  color: #6b7280;
}

.auth-container a{
  color: #6b7280;
  font-size: 13px;
  text-decoration: none;
}
.auth-container a:hover{ text-decoration: underline; color:#111827; }

.auth-container button{
  border-radius: 999px;
  border: 1px solid var(--ms-accent);
  background: var(--ms-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 44px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in, filter .2s ease;
}

/* Brand row (logo + name) */
.brand-mini{display:flex; align-items:center; gap:10px; width:100%; justify-content:center; margin-bottom:10px;}
.brand-badge{display:none;}
.auth-container button:hover{ filter: brightness(.95); }
.auth-container button:active{ transform: scale(.98); }
.auth-container button.ghost{
  background: transparent;
  border-color: #fff;
}

.auth-container form{
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 54px;
  height: 100%;
  text-align: center;
}

.auth-container input{
  background-color: #eee;
  border: none;
  padding: 12px 14px;
  margin: 8px 0;
  width: 100%;
  border-radius: 10px;
  outline: none;
}

.brand-mini{
  display:flex; align-items:center; justify-content:center;
  gap:10px;
  margin-bottom: 10px;
}
.brand-badge{
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg,#0ea5e9,#14b8a6);
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; font-weight:900;
}

.form-container{
  position: absolute;
  top: 0;
  height: 100%;
  transition: all .6s ease-in-out;
}

.sign-in-container{
  left: 0;
  width: 50%;
  z-index: 2;
}

.auth-container.right-panel-active .sign-in-container{
  transform: translateX(100%);
}

.sign-up-container{
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.auth-container.right-panel-active .sign-up-container{
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show .6s;
}

@keyframes show{
  0%, 49.99% { opacity: 0; z-index: 1; }
  50%, 100% { opacity: 1; z-index: 5; }
}

/* Overlay */
.overlay-container{
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform .6s ease-in-out;
  z-index: 100;
}

.auth-container.right-panel-active .overlay-container{
  transform: translateX(-100%);
}

.overlay{
  background: linear-gradient(135deg, var(--ms-accent), var(--ms-accent2));
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform .6s ease-in-out;
}

.auth-container.right-panel-active .overlay{
  transform: translateX(50%);
}

.overlay-panel{
  position: absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  padding: 0 44px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform .6s ease-in-out;
}

.overlay-left{
  transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left{
  transform: translateX(0);
}

.overlay-right{
  right: 0;
  transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right{
  transform: translateX(20%);
}

.small-muted{ font-size: 12px; color:#6b7280; }

@media (max-width: 900px){
  .auth-container{ min-height: 640px; }
  .sign-in-container, .sign-up-container, .overlay-container{
    width: 100%;
    left: 0;
  }
  .overlay-container{ display:none; }
  .auth-container.right-panel-active .sign-in-container{ transform:none; opacity:0; pointer-events:none; }
  .auth-container.right-panel-active .sign-up-container{ transform:none; }
  .sign-up-container{ opacity:0; pointer-events:none; }
  .auth-container.right-panel-active .sign-up-container{ opacity:1; pointer-events:auto; }
  .auth-container form{ padding: 0 26px; }
}
