.login-wrapper {
  position: relative;
  background: var(--color-dark-blue);
  min-height: 15vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4rem;
  width: 85%;
  z-index: 2;
}

.login-text {
  color: white;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.login-container .fancy-button {
  padding: 0.5rem 2rem;
}

.password-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999999999999;
  align-items: center;
  justify-content: center;
}

.password-dialog-inner-box {
  background: white;
  padding: 1.875rem;
  border-radius: 0.625rem;
  width: 18.75rem;
  text-align: center;
  position: relative;
}

.close-login-dialog {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.login-input {
  width: 100%;
  padding: 0.625rem;
  margin-top: 0.625rem;
}

.open-pdf-button {
  position: relative;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  color: black;
  background: transparent;
  border: none;
  font-size: clamp(0.8rem, 2vw, 1rem);
  cursor: pointer;
  font-family: inherit;
  z-index: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.open-pdf-button .pdf-corner {
  position: absolute;
  width: 1rem;
  height: 0.5rem;
  background: transparent;
  border-color: black;
  z-index: -1;
  transition: all 0.3s ease;
}

/* Corners */
.pdf-top-left {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.pdf-top-right {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.pdf-bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.pdf-bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.open-pdf-button:hover {
  background: black;
  color: white;
  font-weight: 600;
}

/* Hover animation to connect the corners */
.open-pdf-button:hover .pdf-corner {
  width: 100%;
  height: 100%;
  border-width: 2px;
  color: black;
}

.pdf-top-left {
  transition-delay: 0s;
}
.pdf-top-right {
  transition-delay: 0.05s;
}
.pdf-bottom-right {
  transition-delay: 0.1s;
}
.pdf-bottom-left {
  transition-delay: 0.15s;
}

.pdf-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  z-index: 9999999999;
}

.pdf-modal-inner-box {
  position: relative;
  width: 90%;
  height: 90vh;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
}

.close-pdf-button {
  position: absolute;
  top: 0.1rem;
  right: 8.5rem;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 1000;
}

#pdf-frame {
  flex: 1;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .pdf-modal-inner-box {
    width: 95vw;
    height: 95vh;
    border-radius: 4px;
  }

  .close-pdf-button {
    font-size: 1.25rem;
    top: 0.1rem;
    right: 0.5rem;
  }
}

/* Mobile  */

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}
