body.vivo-gate-open {
  overflow: hidden;
}

body.vivo-gate-open #vivo-research-gate{
    display: inline-block;
}

#vivo-research-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: inline-block;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  overflow: auto;
}

.vivo-forgot-password {
  text-align: right;
  margin-top: -6px;
  margin-bottom: 10px;
}

.vivo-forgot-password a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.vivo-forgot-password a:hover {
  color: #fff;
  text-decoration: underline;
}

.vivo-research-gate__backdrop {
  position: fixed;
  inset: 0;
  background:
  radial-gradient(circle at 20% 20%, rgba(97,206,112,0.25), transparent 45%),
  radial-gradient(circle at 80% 80%, rgba(97,206,112,0.18), transparent 45%),
  radial-gradient(circle at 50% 50%, rgba(97,206,112,0.08), transparent 60%),
  linear-gradient(180deg, #0b1a10 0%, #050805 100%);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

.vivo-research-gate__modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 28px;
  padding: 34px 34px 28px;
  background:
  linear-gradient(180deg, rgba(28,50,34,0.92) 0%, rgba(12,24,16,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 80px rgba(0,0,0,0.45);
  color: #fff;
  margin: 50px auto;
}

.vivo-research-gate__header {
  text-align: center;
  margin-bottom: 28px;
}

.vivo-research-gate__header h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.vivo-research-gate__header h1 strong {
  font-weight: 800;
}

.vivo-research-gate__header p {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(255,255,255,0.62);
  font-size: 15px;
  line-height: 1.7;
}

.vivo-research-gate__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 30px;
}

.vivo-tab-btn {
  height: 50px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0;
  text-transform: none !important;
}

.vivo-tab-btn.active {
  background: #050505;
  color: #fff;
  border-color: rgba(255,255,255,0.05);
}

.vivo-research-gate__panel {
  display: none;
}

.vivo-research-gate__panel.active {
  display: block;
}

.vivo-research-gate__card {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 24px 20px;
}

.vivo-research-gate__card h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.vivo-gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vivo-gate-form label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.74);
}

.vivo-gate-form input[type="email"],
.vivo-gate-form input[type="text"],
.vivo-gate-form input[type="password"] {
  height: 54px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: #fff;
  padding: 0 24px;
  font-size: 14px;
  outline: none;
}

.vivo-gate-form input[type="email"]:focus,
.vivo-gate-form input[type="text"]:focus, 
.vivo-gate-form input[type="password"]:focus {
  color: #000 !important;
}

.vivo-gate-form input::placeholder {
  color: rgba(255,255,255,0.28);
}

.vivo-checkbox {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.vivo-checkbox input[type="checkbox"] {
  width: 28px;
  height: 28px;
  accent-color: #fff;
}

.vivo-checkbox span {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.vivo-note {
  text-align: center;
  color: rgba(255,255,255,0.38);
  font-size: 14px;
  margin: 6px 0 0;
}

.vivo-note--muted {
  text-align: left;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.48);
  margin-top: -2px;
}

.vivo-submit-btn {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 22px;
  background: #030303;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.vivo-switch-link {
  text-align: center;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.vivo-inline-switch {
  background: none;
  border: 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.vivo-research-gate__footer {
  text-align: center;
  margin-top: 26px;
  color: rgba(255,255,255,0.44);
  font-size: 16px;
  font-weight: 600;
}

.vivo-message {
  margin-top: 10px;
  font-size: 14px;
}

.vivo-message--success {
  color: #61CE70;
}

.vivo-message--error {
  color: #ff4d4f;
}

.vivo-success-text {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  #vivo-research-gate {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .vivo-research-gate__modal {
    padding: 22px 18px 20px;
    border-radius: 22px;
  }

  .vivo-research-gate__header h1 {
    font-size: 24px;
  }

  .vivo-research-gate__header p {
    font-size: 14px;
    line-height: 1.5;
  }

  .vivo-research-gate__tabs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vivo-tab-btn {
    height: 66px;
    font-size: 14px;
    border-radius: 18px;
  }

  .vivo-research-gate__card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .vivo-gate-form input[type="email"],
  .vivo-gate-form input[type="text"],
  .vivo-gate-form input[type="password"] {
    height: 54px;
    border-radius: 18px;
    font-size: 14px;
  }

  .vivo-submit-btn {
    height: 50px;
    border-radius: 18px;
    font-size: 14px;
  }
}