/* Visbi login — ported from Visbi-Login.html template */

@keyframes vs-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@keyframes vs-cone {
  0%, 100% { transform: rotate(-14deg); }
  50% { transform: rotate(14deg); }
}

.realtime-theme .login-stage {
  position: relative;
  min-height: calc(100vh - var(--navbar-height, 60px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #FAF8F6;
  overflow: hidden;
  font-family: 'Bio Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.realtime-theme .login-stage .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.realtime-theme .login-stage .cone {
  transform-origin: 0px 0px;
  animation: vs-cone 11s ease-in-out infinite;
}

.realtime-theme .login-stage .lens {
  animation: vs-blink 2.4s ease-in-out infinite;
}

.realtime-theme .login-stage .login-card {
  position: relative;
  width: 100%;
  max-width: 398px;
  background: #fff;
  border: 1px solid #EAE5E2;
  border-radius: 18px;
  padding: 36px 34px 32px;
  box-shadow: 0 24px 64px rgba(15, 10, 11, .07);
  text-align: center;
}

.realtime-theme .login-stage .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.realtime-theme .login-stage .brand span {
  flex: 1;
  height: 1px;
}

.realtime-theme .login-stage .brand span:first-child {
  background: linear-gradient(to right, rgba(234, 229, 226, 0), #EAE5E2);
}

.realtime-theme .login-stage .brand span:last-child {
  background: linear-gradient(to left, rgba(234, 229, 226, 0), #EAE5E2);
}

.realtime-theme .login-stage .brand img {
  height: 34px;
  width: 110px;
  flex-shrink: 0;
  display: block;
}

.realtime-theme .login-stage h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.9px;
  line-height: 1.1;
  color: #000;
}

.realtime-theme .login-stage .fields {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}

.realtime-theme .login-stage .field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #EAE5E2;
  border-radius: 10px;
  background: #FAF8F6;
  text-align: left;
  transition: border-color .16s, background .16s;
}

.realtime-theme .login-stage .field:focus-within {
  border-color: #000;
  background: #fff;
}

.realtime-theme .login-stage .field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #000;
  font-family: 'Bio Sans', -apple-system, sans-serif;
}

.realtime-theme .login-stage .field input:focus {
  outline: none;
}

.realtime-theme .login-stage .field input::placeholder {
  color: #666;
  opacity: 1;
}

.realtime-theme .login-stage .field .ico {
  flex-shrink: 0;
  stroke: #999;
  transition: stroke .16s;
}

.realtime-theme .login-stage .field:focus-within .ico {
  stroke: #000;
}

.realtime-theme .login-stage .reveal {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
}

.realtime-theme .login-stage .submit {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 10px;
  background: #E12424;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 5px;
  transition: background .16s;
}

.realtime-theme .login-stage .submit:hover,
.realtime-theme .login-stage .submit.busy {
  background: #c91f1f;
}

.realtime-theme .login-stage .forgot {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
  text-decoration: none;
}

.realtime-theme .login-stage .forgot:hover {
  color: #E12424;
}

.realtime-theme .login-stage .foot {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  padding: 0 12px;
}

/* Mobile-compact and 2xl (>=1536px, full Figma scale) tiers — mirrors the
   breakpoints in the Visbi-Login.html mockup. Base rules above stay the
   laptop-scale default. */
@media (max-width: 380px) {
  .realtime-theme .login-stage {
    padding: 28px 16px 56px;
  }

  .realtime-theme .login-stage .login-card {
    padding: 28px 20px 26px;
    border-radius: 16px;
  }

  .realtime-theme .login-stage .brand {
    gap: 10px;
    margin-bottom: 20px;
  }

  .realtime-theme .login-stage .brand img {
    height: 28px;
    width: 92px;
  }
}

@media (min-width: 1536px) {
  .realtime-theme .login-stage {
    padding: 60px 32px;
  }

  .realtime-theme .login-stage .login-card {
    max-width: 460px;
    padding: 44px 42px 38px;
    border-radius: 22px;
  }

  .realtime-theme .login-stage .brand {
    gap: 16px;
    margin-bottom: 30px;
  }

  .realtime-theme .login-stage .brand img {
    height: 40px;
    width: 130px;
  }

  .realtime-theme .login-stage h1 {
    font-size: 32px;
  }

  .realtime-theme .login-stage .fields {
    gap: 14px;
    margin-top: 30px;
  }

  .realtime-theme .login-stage .field {
    gap: 12px;
    padding: 15px 17px;
    border-radius: 12px;
  }

  .realtime-theme .login-stage .field input {
    font-size: 16px;
  }

  .realtime-theme .login-stage .field .ico {
    width: 19px;
    height: 19px;
  }

  .realtime-theme .login-stage .submit {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
  }

  .realtime-theme .login-stage .forgot {
    font-size: 14px;
    margin-top: 6px;
  }

  .realtime-theme .login-stage .foot {
    bottom: 24px;
    font-size: 13px;
  }
}
