@import "vars.css";

body {
  font-family: var(--bodyFont), serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  height: 100vh;
  background: #ffffff;
  overflow: visible;
}

h1, h2 {
  font-family: var(--titleFont), serif;
  overflow: visible;
  line-height: normal;
  letter-spacing: -.5px;
}

button {
  background:linear-gradient(90deg,var(--blackColor) 0%,var(--lightGreyColor5) 100%);
  color:var(--whiteColor);
  border-radius:var(--r-md);
}

button:hover{
  background:var(--secondaryColor);
  transform:translateY(-1px);
  box-shadow:0 1px 1px var(--blackColor);
}

button:active{
  background:var(--primaryColor);
  transform:translateY(1px);
}

.go-btn {
  font-size: 2rem;
}

.header {
  z-index: -3;
}

.bg-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0.1;
  transition: all 0.8s ease;
  z-index: -2;
  pointer-events: none;
  user-select: none;
}

.bg-logo.animated {
  animation:
    zoomIn 0.5s ease-out forwards,
    slowRotate 360s linear infinite 4s;
}

@keyframes zoomIn {
  0% {
    transform: translate(-50%, -50%) scale(0.01);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
}

@keyframes slowRotate {
  from {
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) scale(0.3) rotate(360deg);
  }
}

.login-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 1;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.4s ease;
}

.login-box.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* start transparent */
  backdrop-filter: blur(0px);
  z-index: 1;
  pointer-events: none;
  transition: all 0.6s ease;
}

/* Active state */
.overlay.active {
  background: rgba(255, 255, 255, 0.75); /* start transparent */
}

.go-btn {
  width: 380px;
  padding: 2rem;
  border: none;
  border-radius: 30px;
  background: black;
  color: white;
  font-weight: 600;
  font-size: 2.5rem;
  cursor: pointer;
  box-shadow:
    0 5px 0 rgba(0,0,0,0.75),
    0 5px 5px rgba(0,0,0,0.15);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.go-btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #33ccff;  /* remove shadow */
}

.go-btn:hover {
  background: #0066cc;
}

.error-msg {
  font-size: 14px;
  color: #e11d48; /* soft red */
  min-height: 16px;
  text-align: center;
}

/* highlight invalid inputs */
.input-error {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.1);
}


body.loading .bg-logo.animated {
  animation: paused;
}

body.loading .logo {
  width: 350px;
  animation:
    fastRotate 6s linear infinite;
}
@keyframes fastRotate {
  from {
    transform: translateY(50px) rotate(0deg);
  }
  to {
    transform: translateY(50px) rotate(360deg);
  }
}

/* loading text */
.loading-text {
  font-weight: 500;
  transition: all 0.4s ease;
  pointer-events: none;
  height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
  visibility: hidden;
}

body.loading .loading-text {
  height: auto;
  visibility: visible;
  font-size: 3rem;
  transform: translateY(100px);
}

@media (max-width:1024px){
  body{font-size:.9rem; }
  .go-btn {font-size:4rem;width: 480px;}
}