.excalidraw .Dialog--fullscreen {
  &.auth-modal {
    .Dialog__close {
      display: none;
    }
  }
}

.excalidraw .Dialog--fullscreen {
  .auth-modal {
    &__logo-container {
      display: none;
    }

    &__content {
      height: 100%;
      margin-bottom: 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex: 1;
    }

    &__buttons {
      margin-bottom: auto;
    }
  }

  &.auth-modal {
    .Island {
      height: 100%;
      display: flex;
      flex-direction: column;
    }
  }
}

.auth-modal {
  .Island {
    padding-top: 15px !important;
    padding-bottom: 20px !important;
  }

  &__wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(1px) !important;
  }

  .Modal { /* Overriding the Excalidraw override for the pad.ws logo! */
    &__background {
      background-color: none !important;
      backdrop-filter: none !important;
    }
  }

  &__logo-container {
    position: relative;
    width: fit-content;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    opacity: 0;
    animation: logo-fade-in 2s cubic-bezier(0.00, 1.26, 0.64, 0.95) forwards;
    animation-delay: 0.5s;
  }

  @keyframes logo-fade-in {
    from {
      transform: translate(-270px, -318px);
      opacity: 0;
    }

    to {
      transform: translate(-230px, -318px);
      opacity: 1;
    }
  }

  &__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }

  &__logo-speech-bubble {
    position: absolute;
    background-color: rgb(232, 232, 232);
    color: #333;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 180px;
    left: 73px;
    top: 0px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: bubble-appear 0.3s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
    transform: translateY(5px);

    &::before {
      content: '';
      position: absolute;
      left: -10px;
      top: 10px;
      border-width: 5px 10px 5px 0;
      border-style: solid;
      border-color: transparent rgb(232, 232, 232) transparent transparent;
    }
  }

  @keyframes bubble-appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  &__title-container {
    display: flex;
    align-items: center;
  }

  &__title {
    margin: 0 auto;
    font-size: 65px;
    font-weight: 700;
    color: white;
    text-align: center;

    &-dot {
      color: #fa8933;
    }
  }

  &__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  &__description {
    color: #a0a0a9;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    white-space: pre-line;
    margin-bottom: 40px;
    margin-top: 10px;
    min-width: 300px;
    max-width: 65%;

    .highlight {
      color: #cfcfcf;
      font-weight: bold;
    }
  }

  &__buttons {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 13px;
    width: 100%;
    padding-bottom: 50px;

    button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 65%;
      min-width: 250px;
      gap: 8px;
      height: 44px;
      border-radius: 6px;
      border: 2px solid #727279;
      font-size: 15px;
      font-weight: 500;
      transition: all 0.2s ease;
      cursor: pointer;
      background-color: #464652;
      color: white;

      &:hover {
        border: 2px solid #cc6d24;
      }
    }
  }

  &__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: #a0a0a0;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--dialog-border-color);
    width: 100%;
  }

  &__warning {
    text-align: right;
    color: #828282bd;
    font-size: 14px;
    font-weight: 400;
  }
}