/* HEADER BAR */
.header-bar {
  width: 100vw;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 24px #22c55e12;
  padding: 26px 0 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
}
@media (max-width:700px) {
  .header-bar { padding: 13px 0 6px 0; }
  .logo-ani { width:34px;height:34px;}
  .header-bar h1 { font-size:1.1rem;}
}
@keyframes logo-ani {
  0% { transform: scale(1) rotate(-3deg) drop-shadow(0 2px 14px #4285f477);}
  50% { transform: scale(1.13) rotate(4deg) drop-shadow(0 7px 20px #22c55e77);}
  100% { transform: scale(1) rotate(-3deg) drop-shadow(0 2px 14px #4285f477);}
}
.logo-ani {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  height: 44px;
  width: 44px;
  border-radius: 12px;
  animation: logo-ani 2.2s infinite;
  background: #fff;
  box-shadow: 0 1px 10px #4285f41a;
  object-fit: cover;
}
.header-bar h1 {
  margin:0;
  color:#22c55e;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.6rem;
}

/* AUTH CONTAINER – CENTER FIXED */
body, html {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  /* Leave space for header-bar */
  padding-top: 94px !important;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Center container perfectly, fixed and never moves */
.auth-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px 30px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 5px solid;
  border-image-slice: 1;
  border-width: 5px;
  border-image-source: linear-gradient(270deg, #ff0000, #0000ff, #00ff00, #ff00ff, #00ffff);
  animation: borderGradient 10s ease infinite;
  z-index: 100;
  min-height: 370px;
}

@keyframes borderGradient {
  0% {
    border-image-source: linear-gradient(270deg, #ff0000, #0000ff, #00ff00, #ff00ff, #00ffff);
  }
  50% {
    border-image-source: linear-gradient(90deg, #ff0000, #0000ff, #00ff00, #ff00ff, #00ffff);
  }
  100% {
    border-image-source: linear-gradient(270deg, #ff0000, #0000ff, #00ff00, #ff00ff, #00ffff);
  }
}

@media (max-width: 600px) {
  .auth-container {
    padding: 22px 5vw 19px;
    max-width: 98vw;
    min-height: 240px;
  }
}
